Files
DeepTutor/tests/services/memory
Rudy Celekli 6498bc7fbc fix(memory): keep footnote-like tokens in entry text on round-trip
parse() swallowed a `[^token]` that was part of an entry's text. The
new-bullet regex matched trailing markers as `[^...]` (any non-`]`
run), so prose ending in a footnote-like token (e.g. "footnote syntax
is [^note]") was absorbed into the markers group and dropped, breaking
the documented `parse(serialize(d)) == d` contract. Because the token
label failed to resolve, the text was silently truncated and, once the
entry also carried a real ref, its markers were mangled too.

serialize() emits integer labels exclusively, so narrow the inline-marker
pattern to `[^<digits>]`. Non-integer footnote-like tokens now stay in
the text where they belong; real numeric citation markers still parse
(including the legacy compact `[^1][^2]` form).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 09:13:39 -05:00
..
2026-06-17 00:56:27 +08:00
2026-09-02 04:09:11 +08:00
2026-10-08 11:34:42 +08:00
2026-09-03 01:38:54 +08:00
2026-07-24 03:06:58 +08:00