mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibRegex: Correct jump offset to the start of the loop block
Previously we were jumping to the new end of the previous block (created by the newly inserted ForkStay), correct the offset to jump to the correct block as shown in the comments. Fixes #12033.
This commit is contained in:
parent
3de51a4b99
commit
bfe8f312f3
Notes:
sideshowbarker
2024-07-17 20:32:15 +09:00
Author: https://github.com/alimpfard
Commit: bfe8f312f3
Pull-request: https://github.com/SerenityOS/serenity/pull/12038
Issue: https://github.com/SerenityOS/serenity/issues/11940
Issue: https://github.com/SerenityOS/serenity/issues/12033
2 changed files with 5 additions and 3 deletions
|
@ -914,6 +914,8 @@ TEST_CASE(optimizer_atomic_groups)
|
|||
Tuple { "(1+)\\1"sv, "11"sv, true },
|
||||
Tuple { "(1+)1"sv, "11"sv, true },
|
||||
Tuple { "(1+)0"sv, "10"sv, true },
|
||||
// Rewrite should not skip over first required iteration of <x>+.
|
||||
Tuple { "a+"sv, ""sv, false },
|
||||
};
|
||||
|
||||
for (auto& test : tests) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue