unknown 6 anni fa
parent
commit
c2db52fa14
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/jy/clear/specialsymbols.go

+ 1 - 0
src/jy/clear/specialsymbols.go

@@ -211,6 +211,7 @@ func RemoveAsymmetric(text string) string {
 }
 
 func OtherClean(field, text string) string {
+	text = RemoveHeadAndEndSpace(text) //去除首尾空格
 	if AsyField[field].(bool) {
 		text = RemoveAsymmetric(text) //特殊符号
 	}