Unclosed regular expression #803

Closed
ikokostya opened this Issue Jan 5, 2013 · 1 comment

3 participants

@ikokostya

jshint v1.0.0-rc3

Code:

var x = [1];
var y = x[0] / 180;

Error:

test.js: line 2, col 14, Unclosed regular expression.
test.js: line 14, col 12, 2 (350% scanned).

2 errors
@valueof valueof added a commit that closed this issue Jan 14, 2013
@valueof valueof Add a closing bracket to the prereg list.
This fixes a bug where code like `a[1] / 12` would trigger an
unclosed regular expression error.

Closes GH-803.
07a167a
@valueof valueof closed this in 07a167a Jan 14, 2013
@jugglinmike jugglinmike added a commit to jugglinmike/jshint that referenced this issue Oct 21, 2014
@valueof valueof Add a closing bracket to the prereg list.
This fixes a bug where code like `a[1] / 12` would trigger an
unclosed regular expression error.

Closes GH-803.
2aa3e54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment