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:
parent
ab2c646d5d
commit
8cada744df
2 changed files with 29 additions and 0 deletions
|
@ -535,6 +535,7 @@ TEST_CASE(ECMA262_match)
|
|||
{ "bar.*(?<=foo)", "barbar", false },
|
||||
{ "bar.*(?<!foo)", "barbar", true },
|
||||
{ "((...)X)+", "fooXbarXbazX", true },
|
||||
{ "(?:)", "", true },
|
||||
};
|
||||
|
||||
for (auto& test : tests) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue