Skip to content
Snippets Groups Projects
Commit 912f5ac5 authored by Johan de Klerk's avatar Johan de Klerk
Browse files

Added NormalizeWhitespace

parent 20ab46e5
No related branches found
No related tags found
No related merge requests found
...@@ -443,3 +443,7 @@ func IsAllDigits(str string) bool { ...@@ -443,3 +443,7 @@ func IsAllDigits(str string) bool {
_, err := number_utils.StringToInt(str) _, err := number_utils.StringToInt(str)
return err == nil return err == nil
} }
func NormalizeWhitespace(s string) string {
return strings.Join(strings.Fields(s), " ")
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment