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
For this case it passes, but I haven't tried this change with the other tests. I'll try to get to this over the weekend unless someone else does a PR with the new test cases before that.
@doowb Unfortunately that fix is too simplistic, if the string were \\\\\\"hello world\\\\" then the quote would be properly escaped but would still satisfy string[idx - 1] === '\\' && string[idx - 2] !== '\\'.
It appears the logic for when to respect a quote vs an escaped quote does not consider if the preceding escape char is itself escaped. For example:
I would expect this to be
[ '\\\\"hello world\\\\"' ]
.Thoughts?
The text was updated successfully, but these errors were encountered: