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. |
||
|---|---|---|
| .. | ||
| Rust | ||
| CMakeLists.txt | ||
| ECMAScriptRegex.cpp | ||
| ECMAScriptRegex.h | ||
| RustRegex.cpp | ||
| RustRegex.h | ||