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.
6 lines
No EOL
189 B
Text
6 lines
No EOL
189 B
Text
==== tests/cases/compiler/validRegexp.ts (1 errors) ====
|
|
var x = / [a - z /]$ / i;
|
|
~
|
|
!!! ',' expected.
|
|
var x1 = /[a-z/]$/i;
|
|
var x2 = /[a-z/]$ /i; |