mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
Fix RemoveSpaces
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user