File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ func StrShuffle(str string) string {
615
615
func Trim (str string , characterMask ... string ) string {
616
616
mask := ""
617
617
if len (characterMask ) == 0 {
618
- mask = " \\ t \ \ n\\ r \\ 0 \\ x0B "
618
+ mask = " \t \r \n \f \v "
619
619
} else {
620
620
mask = characterMask [0 ]
621
621
}
@@ -626,7 +626,7 @@ func Trim(str string, characterMask ...string) string {
626
626
func Ltrim (str string , characterMask ... string ) string {
627
627
mask := ""
628
628
if len (characterMask ) == 0 {
629
- mask = " \\ t \ \ n\\ r \\ 0 \\ x0B "
629
+ mask = " \t \r \n \f \v "
630
630
} else {
631
631
mask = characterMask [0 ]
632
632
}
@@ -637,7 +637,7 @@ func Ltrim(str string, characterMask ...string) string {
637
637
func Rtrim (str string , characterMask ... string ) string {
638
638
mask := ""
639
639
if len (characterMask ) == 0 {
640
- mask = " \\ t \ \ n\\ r \\ 0 \\ x0B "
640
+ mask = " \t \r \n \f \v "
641
641
} else {
642
642
mask = characterMask [0 ]
643
643
}
You can’t perform that action at this time.
0 commit comments