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
@lemanhtien sorry for the late reply. From what I can see, this is behaving correctly. What's confusing is the double escaping.
In Swift strings literals \ is an escaped slash, so you get a single \ in the output.
But when that swift string contains an expression, then that single \ is passed to the expression parser. "\s" is not a known escape sequence so the \ is silently dropped, resulting in "foobar" as the output. To include a literal \ in the value you would need to double-escape the slash, like this:
Here is the default test case, which the result is
correct
Modify the parameter value a bit, by adding "\", then the result is
wrong
I tested several test case, and noticed that if the parameter is string, and it contains
\\
, the result will be wrong.Do you have any ideas to update this one? I think it relates to the function
parseEscapedIdentifier
.The text was updated successfully, but these errors were encountered: