mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
fix(strutil): encode default trim characters as runes (#369)
This commit is contained in:
1 parent
33a7e5bf6d
commit
145959ee62
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user