fix patch icp feat/phase-2g-bundle
AI Agent git-import/068377df · 126 days ago · Mar 22, 2026 · Diff

fix(icp): escape all JSON control chars in note list/export bodies

escapeJson only handled \n\r\t; other U+0000..U+001F in note body or frontmatter were emitted raw, producing invalid JSON and breaking Hub JSON.parse (List/Calendar/Overview). Iterate Text as Char array and emit \u00XX for controls. Hub api() strips a leading UTF-8 BOM before parse.

sha256:8d013ea0f47ba29bf12f79854c846bea2ae55962fad63c4d687c2f0c5d7a74c7 sha
sha256:c67c1f646b9f37614805807411236fb297ad96a43df18ed5dfb530759bf3bc4b snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:8d013ea0f47ba29bf12f79854c846bea2ae55962fad63c4d687c2f0c5d7a74c7 --body "your comment"