mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
`range_contains()` checked if an lhs_range was contained within the query range, rather than checking for overlap. This caused patterns like `/A*[A-Z]/` to fail matching "A" because the optimizer didn't detect that 'A' overlaps with [A-Z]. And `char_class_contains()` only checked if two character classes were identical, not if they overlapped. So patterns like `/\d*\w/` failed to match "1" because \d and \w were not recognized as overlapping, even though all digits are word characters.