fix(strutil): encode default trim characters as runes (#369)

This commit is contained in:
Yusuf Efe authored and GitHub committed 2026-10-23 18:14:58 +08:00
1 parent 33a7e5bf6d
commit 145959ee62
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -519,7 +519,7 @@ func SplitAndTrim(str, delimiter string, characterMask ...string) []string {
var (
// DefaultTrimChars are the characters which are stripped by Trim* functions in default.
DefaultTrimChars = string([]byte{
DefaultTrimChars = string([]rune{
'\t', // Tab.
'\v', // Vertical tab.
'\n', // New line (line feed).