Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Unclosed regular expression #803

Closed
ikokostya opened this Issue · 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 closed this issue from a commit
@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
@jugglinmike jugglinmike referenced this issue from a commit in jugglinmike/jshint
@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
Something went wrong with that request. Please try again.