fix location off-by-ones with regexp parsing

This commit is contained in:
Erik Krogh Kristensen
2021-11-15 13:43:39 +01:00
parent 80919e39a2
commit 2163648b39
6 changed files with 1283 additions and 469 deletions

View File

@@ -11,4 +11,21 @@ var reg4 = new RegExp(
"bar" +
"baz" +
"qux"
);
);
var bad95 = new RegExp(
"(a" +
"|" +
"aa)*" +
"b$"
);
var bad96 = new RegExp("(" +
"(c|cc)*|" +
"(d|dd)*|" +
"(e|ee)*" +
")f$");
var bad97 = new RegExp(
"(g|gg" +
")*h$");

File diff suppressed because it is too large Load Diff