Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JavaScript] Issue with regex empty character class #873

Closed
ghost opened this issue Apr 3, 2017 · 1 comment
Closed

[JavaScript] Issue with regex empty character class #873

ghost opened this issue Apr 3, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 3, 2017

The following code

console.log(/[]\//.test(""));

is highlighted like a comment. Here [] is empty regex character class which is not allowed in Python and PCRE languages, but in JavaScript it is considered as a valid regex pattern. There is currently no use of it, but it still represents correct syntax.

@ghost ghost changed the title [JavaScript] Issue with regex empty character class Deleted Apr 11, 2017
@wbond wbond changed the title Deleted [JavaScript] Issue with regex empty character class Apr 18, 2017
@Thom1729
Copy link
Collaborator

Seems to be fixed by #1009.

@wbond wbond closed this as completed Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants