Files
cc-connect/core
kevinWangSheng fc0e8e790f fix(core): use rune-based splitting in splitMessage to prevent invalid UTF-8
splitMessage used byte-length (len(s)) and byte-slicing (s[:n]) to split
long messages into platform-sized chunks. When the text contains multi-byte
UTF-8 characters (Chinese, Japanese, emoji, etc.), a byte-level split can
cut in the middle of a character, producing invalid UTF-8 sequences that
cause garbled output on messaging platforms.

Switch to []rune-based length checks and slicing so splits always occur
at character boundaries. Also fix the newline-boundary search to correctly
convert byte offsets to rune offsets in the mixed-content case.

Add regression tests covering CJK, emoji, and newline-split scenarios.
2026-03-13 14:05:42 -07:00
..
2026-03-13 15:28:33 +11:00
2026-02-28 10:38:24 +08:00
2026-03-11 07:05:11 +08:00
2026-03-09 16:10:05 +08:00
2026-03-09 15:45:21 +08:00