- fix TrimBlanChar to TrimBlankChar.

This commit is contained in:
gazebo
2018-11-02 14:09:11 +08:00
parent ba1923f313
commit 5b702b80cf
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ func FilterMb4(content string) string {
return newContent.String()
}
func TrimBlanChar(str string) string {
func TrimBlankChar(str string) string {
return strings.Trim(str, "\n\r\t ")
}

View File

@@ -130,7 +130,7 @@ func TestTrimBlanChar(t *testing.T) {
str := `
大小21
`
if TrimBlanChar(str) != "大小21" {
if TrimBlankChar(str) != "大小21" {
t.Fatal("TrimBlanChar doesn't work")
}
}