Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upError in "The Rules" on front page #1019
Comments
This comment has been minimized.
This comment has been minimized.
|
Huh, Yeah this gives an unexpected token error: /foo/.test('foo bar')
/bar/.test('foo bar') |
This comment has been minimized.
This comment has been minimized.
|
Oh, and also |
This comment has been minimized.
This comment has been minimized.
|
We only included likely characters in the list of things to watch for. You'll notice in @Flet's example that the return values from the However, I've heard others point this out before, so I included the full list of gotcha characters in this commit for completeness: ccbbd92#diff-fc204564835eac10577935faecd0dc71R1304 |
feross
closed this
May 9, 2018
feross
added
the
question
label
May 9, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Aug 7, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Thom1729 commentedNov 21, 2017
Emphasis original. If you omit semicolons, you also must not start a line with
/(unless you're beginning a comment).The error is repeated under the Semicolons heading.