Fix RemoveSpaces

This commit is contained in:
2025-09-09 21:26:26 +08:00
parent f5c39e0315
commit 844233e70d

View File

@@ -7,7 +7,7 @@ import (
func RemoveSpaces(s string) string { func RemoveSpaces(s string) string {
reg := regexp.MustCompile(`\s+`) reg := regexp.MustCompile(`\s+`)
return reg.ReplaceAllString(s, " ") return reg.ReplaceAllString(s, "")
} }
func OnlyPunctuation(s string) bool { func OnlyPunctuation(s string) bool {