Skip to content

Commit 9c59dbc

Browse files
committed
Correction char at end of script
1 parent 8bb9b08 commit 9c59dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ bool TryParseStringAndParenthisAndCurlyBrackets(ref int index)
11411141
Match charMatch = internalCharRegex.Match(script.Substring(index));
11421142

11431143
if (charMatch.Success)
1144-
index += charMatch.Length;
1144+
index += charMatch.Length - 1;
11451145

11461146
parsed = false;
11471147
}

0 commit comments

Comments
 (0)