mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibRegex: Use proper CharRange constructor instead of bit_casting
Otherwise the range order would be inverted.
This commit is contained in:
committed by
Andreas Kling
parent
c774790975
commit
7d01ee63d6
@@ -922,6 +922,7 @@ TEST_CASE(optimizer_atomic_groups)
|
||||
Tuple { "a+b"sv, "aaaaa"sv, false },
|
||||
Tuple { "\\\\(\\d+)"sv, "\\\\"sv, false }, // Rewrite bug turning a+ to a*, see #10952.
|
||||
Tuple { "[a-z.]+\\."sv, "..."sv, true }, // Rewrite bug, incorrect interpretation of Compare.
|
||||
Tuple { "[.-]+\\."sv, ".-."sv, true },
|
||||
// Alternative fuse
|
||||
Tuple { "(abcfoo|abcbar|abcbaz).*x"sv, "abcbarx"sv, true },
|
||||
Tuple { "(a|a)"sv, "a"sv, true },
|
||||
|
||||
Reference in New Issue
Block a user