mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-06 07:38:24 +00:00
Fixes bug #25674. `replace` read `s[i+1]` for a CRLF pair without ensuring `i+1 < s.len()`, so a value ending in a lone `\\c` (quoted in `writeConfig`) raised `IndexDefect`. - Fix: only treat `\\c\\l` when the following character exists. - Test: `tests/stdlib/tparsecfg.nim` block bug #25674 — fails before fix, passes after.