Closed 70sh1 closed 8 months ago
This is achieved by using strings.Fields instead of strings.Split
This results in a cleaner output when parsing messages like /tags a lot of spaces
/tags a lot of spaces
Output before: []string{"a", "", "", "", "", "", "", "", "", "", "lot", "", "", "", "", "", "", "", "", "of", "", "", "", "", "", "", "", "spaces"}
[]string{"a", "", "", "", "", "", "", "", "", "", "lot", "", "", "", "", "", "", "", "", "of", "", "", "", "", "", "", "", "spaces"}
Output after the change: []string{"a", "lot", "of", "spaces"}
[]string{"a", "lot", "of", "spaces"}
This is achieved by using strings.Fields instead of strings.Split
This results in a cleaner output when parsing messages like
/tags a lot of spaces
Output before:
[]string{"a", "", "", "", "", "", "", "", "", "", "lot", "", "", "", "", "", "", "", "", "of", "", "", "", "", "", "", "", "spaces"}
Output after the change:
[]string{"a", "lot", "of", "spaces"}