You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backslashes aren't properly handled, It seems to escape them twice: \\\\ => \\ =>\
2. Exception
If you are seeing an exception, include the full exception details (message and stack trace).
Exception message:"parsing \"te\\st\" - Unrecognized escape sequence \\s."
Stack trace:
" at System.Linq.Dynamic.Core.Parser.StringParser.ParseString(String s)\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseStringLiteral()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimaryStart()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParsePrimary()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseUnary()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseMultiplicative()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAdditive()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseShiftOperator()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseComparisonOperator()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLogicalAndOrOperator()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseIn()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseAndOperator()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseOrOperator()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseLambdaOperator()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseNullCoalescingOperator()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.ParseConditionalOperator()\r\n at System.Linq.Dynamic.Core.Parser.ExpressionParser.Parse(Type resultType, Boolean createParameterCtor)\r\n at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(Type delegateType, ParsingConfig parsingConfig, Boolean createParameterCtor, ParameterExpression[] parameters, Type resultType, String expression, Object[] values)\r\n at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(ParsingConfig parsingConfig, Boolean createParameterCtor, Type itType, Type resultType, String expression, Object[] values)\r\n at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where(IQueryable source, ParsingConfig config, String predicate, Object[] args)\r\n at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where[TSource](IQueryable`1 source, ParsingConfig config, String predicate, Object[] args)\r\n at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where[TSource](IQueryable`1 source, String predicate, Object[] args)\r\n at dynamicLinqTest.Program.Main(String[] args) in C:\\Users\\mave\\source\\repos\\dynamicLinqTest\\dynamicLinqTest\\Program.cs:line 17"
@MV-GH
Because the backslash is used within an already escaped string : "it == \"XXX\", you need to double escape the backslash.
So t1 and t3 are valid scenarios.
Note that this behavior was not entirely correct in previous versions been fixed in version v1.2.13 ; issue #545.
1. Description
Backslashes aren't properly handled, It seems to escape them twice:
\\\\
=>\\
=>\
2. Exception
If you are seeing an exception, include the full exception details (message and stack trace).
3. Fiddle or Project
FIDDLE:
https://dotnetfiddle.net/CVPBh3
REPRO
The text was updated successfully, but these errors were encountered: