- TrimBlanChar
This commit is contained in:
@@ -186,3 +186,10 @@ func FilterMb4(content string) string {
|
||||
}
|
||||
return newContent.String()
|
||||
}
|
||||
|
||||
func TrimBlanChar(str string) string {
|
||||
return strings.TrimFunc(str, func(value rune) bool {
|
||||
strValue := string(value)
|
||||
return strValue == " " || strValue == "\t" || strValue == "\n" || strValue == "\r"
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user