Files
ladybird/Libraries/LibRegex
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
..