1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

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
parent ab2c646d5d
commit 8cada744df
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) {