mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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.