Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Apr 8, 2024
1 parent be0358e commit 6a4039a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/System.Linq.Dynamic.Core/Parser/ExpressionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,9 @@ private AnyOf<Expression, Type> ParseStringLiteral(bool forceParseAsString)
_textParser.ValidateToken(TokenId.StringLiteral);

var text = _textParser.CurrentToken.Text;
var parsedStringValue = StringParser.ParseString(_textParser.CurrentToken.Text, _textParser.CurrentToken.Pos);
var parsedStringValue = _parsingConfig.StringLiteralParsing == StringLiteralParsingType.EscapeDoubleQuoteByTwoDoubleQuotes ?
StringParser.ParseStringAndEscapeTwoDoubleQuotesByASingleDoubleQuote(text, _textParser.CurrentToken.Pos) :
StringParser.ParseString(text, _textParser.CurrentToken.Pos);

if (_textParser.CurrentToken.Text[0] == '\'')
{
Expand Down

0 comments on commit 6a4039a

Please sign in to comment.