LibRegex: Give the bytecode a chance to run when there's no input

Fixes #4246
Also adds a test case.
This commit is contained in:
AnotherTest 2020-11-29 23:44:48 +03:30 committed by Andreas Kling
commit 8cada744df
Notes: sideshowbarker 2024-07-19 01:09:59 +09:00
2 changed files with 29 additions and 0 deletions

View file

@ -535,6 +535,7 @@ TEST_CASE(ECMA262_match)
{ "bar.*(?<=foo)", "barbar", false },
{ "bar.*(?<!foo)", "barbar", true },
{ "((...)X)+", "fooXbarXbazX", true },
{ "(?:)", "", true },
};
for (auto& test : tests) {