You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace string replacers with config regexes
MermaidID and KeyFileSlug used multi-pair strings.NewReplacer
with inline character mappings. Replaced with centralized regexes:
- regex.MermaidUnsafe: matches [/.\-] for Mermaid node IDs
- regex.SlugUnsafe: matches [/.] for journal slug generation
One regex call replaces 3-4 token references and a NewReplacer
allocation. Reduces overtokenization for agents reading the code.
Signed-off-by: Jose Alekhinne <jose@ctx.ist>
0 commit comments