6719b8c9a35efc8957aa1d50ff4e572828d835d0
getTokenExclude looped forever when the data ended in a backslash: once the cursor hit the end, the "previous character was a backslash" check never changed. It also treated an escaped backslash (\\) before the terminator as escaping it, so a token could never end in a backslash. Stop at the end of the data, and treat a terminator as escaped only when an odd run of backslashes precedes it. Escapes are still returned as written, so tokens without those two cases are unchanged (testing/zstring_test output is identical). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Description
This repository contains the CoreUtils library. CoreUtils provides support for ServerCore, JetCore and other subsystem libraries used in higher functions.
33 MiB
0 Stars
1 Watchers
0 Forks
Languages
C++
97.8%
Makefile
1.9%
Shell
0.3%