mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Extract whole-pattern `\bliteral\b` cases outside Unicode modes and handle them with literal search plus ASCII word- boundary checks. This keeps the optimization narrow while still covering the token-style patterns that show up often in our regex workloads. Keep Unicode word-boundary patterns on the VM path, since `\b` semantics change there. Add tests for plain matching, ASCII ignore-case matching, and the Unicode fallback case.