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
When sufficiently long regular expressions with the /s (dotAll) flag are used I always get an Invalid regular expression error. Reasonably minimal test case:
$ jshint ~/foo.js
/home/dembry/foo.js: line 7, col 14, Invalid regular expression.
/home/dembry/foo.js: line 8, col 14, Invalid regular expression.
/home/dembry/foo.js: line 9, col 14, Invalid regular expression.
/home/dembry/foo.js: line 10, col 15, Invalid regular expression.
4 errors
jshint version:
$ jshint --version
jshint v2.13.6
node version
$ node --version
v18.19.0
I can't find anything in the documentation about /s even being a problem at all.
This issue goes at least as far back as jshint 2.10.
When sufficiently long regular expressions with the
/s
(dotAll) flag are used I always get anInvalid regular expression
error. Reasonably minimal test case:jshint output:
jshint version:
node version
I can't find anything in the documentation about
/s
even being a problem at all.This issue goes at least as far back as jshint 2.10.
This also occurs on the web demo.
The text was updated successfully, but these errors were encountered: