ladybird/Libraries/LibRegex/Rust
mikiubo f84edd8173 LibRegex: Fix legacy backreference fallback digit 8 or 9
When a multi-digit decimal escape like \81 exceeds the total capture
group count in non-Unicode mode, the parser falls back to legacy octal
reinterpretation. However, digits '8' and '9' are not valid in octal
(base 8), so passing them to parse_legacy_octal() caused an unwrap()
panic on None from char::to_digit(8).
Treat '8' and '9' as literal characters in the fallback path, matching
the behavior already present for the non-backreference.
2026-04-04 12:12:00 +02:00
..
src LibRegex: Fix legacy backreference fallback digit 8 or 9 2026-04-04 12:12:00 +02:00
build.rs Meta: Make Rust FFI headers reproducible 2026-03-31 15:59:04 +02:00
Cargo.toml LibRegex/Rust: Add the ECMA-262 regex engine 2026-03-27 17:32:19 +01:00
cbindgen.toml LibRegex/Rust: Add the ECMA-262 regex engine 2026-03-27 17:32:19 +01:00