mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Extend the literal alternation fast path to cover ASCII-only `/i` patterns outside Unicode modes. Search candidate start positions with a folded first-code-unit set, then verify the alternatives in source order to preserve ECMAScript semantics. Keep Unicode ignore-case alternations on the VM path, since they can match non-ASCII code points through canonicalization. Add tests for mixed-prefix alternatives, source-order selection, and the Unicode fallback behavior.