mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 06:54:26 +03:00
regexp: fix non greedy quantizers with zero length matches
This commit is contained in:
@@ -678,6 +678,8 @@ function test_regexp()
|
||||
assert(a, ["a", undefined]);
|
||||
a = /(?:|[\w])+([0-9])/.exec("123a23");
|
||||
assert(a, ["123a23", "3"]);
|
||||
a = /()*?a/.exec(",");
|
||||
assert(a, null);
|
||||
}
|
||||
|
||||
function test_symbol()
|
||||
|
Reference in New Issue
Block a user