Basically we weren't recognizing that a slash can occur in a character class, so we were bailing out too early on code like `/[/]/`. Fixes issue #318.
4 lines
No EOL
187 B
Text
4 lines
No EOL
187 B
Text
==== tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression2.ts (1 errors) ====
|
|
href.match(/:\/\/(.[^/]+)/)[1];
|
|
~~~~
|
|
!!! Cannot find name 'href'. |