mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
fix location off-by-ones with regexp parsing
This commit is contained in:
@@ -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
Reference in New Issue
Block a user