Closed seep closed 10 years ago
I found an odd edge case with a regex literal.
string.replace /\\/g, "/"
The syntax highlighter treats /\\/g, "/ as the regex literal, and the closing quote as an opening quote. However, it compiles as expected:
/\\/g, "/
string.replace(/\\/g, "/");
I found an odd edge case with a regex literal.
The syntax highlighter treats
/\\/g, "/
as the regex literal, and the closing quote as an opening quote. However, it compiles as expected: