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