mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 15:30:09 +00:00
LibRegex: Account for uppercase characters in insensitive patterns
This commit is contained in:
parent
31e8189f9f
commit
5b45223d5f
Notes:
github-actions[bot]
2025-07-12 09:27:33 +00:00
Author: https://github.com/alimpfard
Commit: 5b45223d5f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5403
Reviewed-by: https://github.com/gmta ✅
6 changed files with 73 additions and 31 deletions
|
@ -736,6 +736,8 @@ TEST_CASE(ECMA262_match)
|
|||
{ "(?!(b))\\1"sv, "a"sv, false },
|
||||
// String table merge bug: inverse map should be merged regardless of available direct mappings.
|
||||
{ "((?<x>a)|(?<x>b))"sv, "aa"sv, false },
|
||||
// Insensitive charclasses should accept upper/lowercase in pattern (lookup table should still be ordered if insensitive lookup is used), ladybird#5399.
|
||||
{ "[aBc]"sv, "b"sv, true, ECMAScriptFlags::Insensitive },
|
||||
};
|
||||
|
||||
for (auto& test : tests) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue