Skip to content

Commit ec15cba

Browse files
committed
Merge remote-tracking branch 'stg609/master' into dev
2 parents ed85576 + 32c1523 commit ec15cba

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,8 +2933,16 @@ protected virtual bool EvaluateString(string expression, Stack<object> stack, re
29332933

29342934
if (expression.Substring(i)[0] == '"')
29352935
{
2936-
endOfString = true;
2937-
stack.Push(resultString.ToString());
2936+
if (expression.Substring(i).Length > 1 && expression.Substring(i)[1] == '"')
2937+
{
2938+
i += 2;
2939+
resultString.Append(@"""");
2940+
}
2941+
else
2942+
{
2943+
endOfString = true;
2944+
stack.Push(resultString.ToString());
2945+
}
29382946
}
29392947
else if (expression.Substring(i)[0] == '{')
29402948
{

0 commit comments

Comments
 (0)