mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 22:41:27 +00:00
Harden regexp parsing a bit
This commit is contained in:
@ -3,4 +3,11 @@
|
||||
let re = /(abc)\//ig;
|
||||
let noRe = !/(abc)\//i;
|
||||
b / ig;
|
||||
/(abc)\//iig;
|
||||
/(abc)\//iX;
|
||||
false && /abc/gX.test(someString) || true;
|
||||
// ERROR 1161: "Unterminated regular expression literal." in regexp.ts @ 75,76
|
||||
// ERROR 1005: "'/' expected." in regexp.ts @ 74,76
|
||||
// ERROR 109: "Invalid regular expression flags." in regexp.ts @ 95,98
|
||||
// ERROR 109: "Invalid regular expression flags." in regexp.ts @ 111,113
|
||||
// ERROR 109: "Invalid regular expression flags." in regexp.ts @ 131,133
|
||||
|
Reference in New Issue
Block a user