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
fix: use rune-boundary-safe UTF-8 truncation for preview
json.Marshal emits raw UTF-8 (not \uXXXX escapes) for non-ASCII runes,
so byte-level slicing can split multi-byte sequences. Adjust the cut
point backward to the nearest valid rune boundary using utf8.RuneStart.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments