mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibRegex: Don't ignore references that weren't bound in checked blocks
Fixes #2281.
This commit is contained in:
parent
55b19c3177
commit
dabd60180f
Notes:
github-actions[bot]
2024-11-12 09:38:57 +00:00
Author: https://github.com/alimpfard
Commit: dabd60180f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2295
Reviewed-by: https://github.com/gmta ✅
2 changed files with 2 additions and 17 deletions
|
@ -708,6 +708,7 @@ TEST_CASE(ECMA262_match)
|
|||
{ "^\\?((&?category=[0-9]+)?(&?shippable=1)?(&?ad_type=demand)?(&?page=[0-9]+)?(&?locations=(r|d)_[0-9]+)?)+$"sv,
|
||||
"?category=54&shippable=1&baby_age=p,0,1,3"sv, false }, // ladybird#968, ?+ should not loop forever.
|
||||
{ "([^\\s]+):\\s*([^;]+);"sv, "font-family: 'Inter';"sv, true }, // optimizer bug, blindly accepting inverted char classes [^x] as atomic rewrite opportunities.
|
||||
{ "(a)(?=a*\\1)"sv, "aaaa"sv, true, global_multiline.value() }, // Optimizer bug, ignoring references that weren't bound in the current or past block, ladybird#2281
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue