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
You can put `[/]` in a regex without escaping the slash: `/[/]/`.
js-tokens already knew about that, but there were only tests for that
situation at the very beginning of regexes. `/a[/]/` would fail to be
parsed correctly, since `a[` would be eagerly consumed by part of the
regex literal regex.
Closes#52.
/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/
This case will be parsed to
/^[a-zA-Z0-9.!#$%&'*+/
and something else.But it can be correctly identified in javascript runtime.
The text was updated successfully, but these errors were encountered: