maxiaoshan %!s(int64=5) %!d(string=hai) anos
pai
achega
689add958c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/jy/clear/cutspace.go

+ 1 - 1
src/jy/clear/cutspace.go

@@ -19,7 +19,7 @@ var (
 var spaces = []string{"\u3000", "\u2003", "\u00a0", "\t", "\r", "\n", "\u0001"}
 
 func init() {
-	cutSpace, _ = regexp.Compile(`^\s*|\s*$`)
+	cutSpace, _ = regexp.Compile(`^[\s]*|[\s]*$`)
 	cutAllSpace, _ = regexp.Compile(`\s*`)
 	catSymbol, _ = regexp.Compile(`[]+`)
 	separateSymbol, _ = regexp.Compile("[\\s\u3000\u2003\u00a0\\n,,、/。|]")