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
The text was updated successfully, but these errors were encountered:
ghost
changed the title
[JavaScript] Regex formatted like a comment
[JavaScript] Regex formatted like a comment if it is followed by a multiplication or division operator
Apr 8, 2017
It looks like the bug does stem from the architectural limitation I talk about in #885. The fix outlined there should correct this issue as well.
The current mechanism for distinguishing division from regexes is brittle. The correct algorithm is simple: at the “head“ of an expression, a slash is a regex, and at the “tail” a slash is division. But the current syntax is not built to maintain that distinction.
Nothing to see here 😄
The text was updated successfully, but these errors were encountered: