Normalize cr/lf/tab
This commit is contained in:
@@ -8,7 +8,7 @@ using Umbraco.Core.Exceptions;
|
||||
namespace Umbraco.Core.Xml
|
||||
{
|
||||
/// <summary>
|
||||
/// This is used to parse our customize Umbraco XPath expressions (i.e. that include special tokens like $site) into
|
||||
/// This is used to parse our customize Umbraco XPath expressions (i.e. that include special tokens like $site) into
|
||||
/// a real XPath statement
|
||||
/// </summary>
|
||||
internal class UmbracoXPathPathSyntaxParser
|
||||
@@ -25,16 +25,16 @@ namespace Umbraco.Core.Xml
|
||||
/// <param name="publishedContentExists">The callback to return whether a published node exists based on Id</param>
|
||||
/// <returns></returns>
|
||||
public static string ParseXPathQuery(
|
||||
string xpathExpression,
|
||||
int? nodeContextId,
|
||||
string xpathExpression,
|
||||
int? nodeContextId,
|
||||
Func<int, IEnumerable<string>> getPath,
|
||||
Func<int, bool> publishedContentExists)
|
||||
{
|
||||
|
||||
//TODO: This should probably support some of the old syntax and token replacements, currently
|
||||
//TODO: This should probably support some of the old syntax and token replacements, currently
|
||||
// it does not, there is a ticket raised here about it: http://issues.umbraco.org/issue/U4-6364
|
||||
// previous tokens were: "$currentPage", "$ancestorOrSelf", "$parentPage" and I beleive they were
|
||||
// allowed 'inline', not just at the beginning... whether or not we want to support that is up
|
||||
// previous tokens were: "$currentPage", "$ancestorOrSelf", "$parentPage" and I beleive they were
|
||||
// allowed 'inline', not just at the beginning... whether or not we want to support that is up
|
||||
// for discussion.
|
||||
|
||||
if (string.IsNullOrWhiteSpace(xpathExpression)) throw new ArgumentNullOrEmptyException(nameof(xpathExpression));
|
||||
|
||||
Reference in New Issue
Block a user