|
@@ -201,11 +201,12 @@ func RemoveAsymmetric(text string) string {
|
|
|
first := string(textRune[0])
|
|
|
last := string(textRune[len(textRune)-1])
|
|
|
if AsyReg.MatchString(first) {
|
|
|
- text = text[1:]
|
|
|
+ textRune = textRune[1:]
|
|
|
}
|
|
|
if AsyReg.MatchString(last) && len(text) > 0 {
|
|
|
- text = text[:len(text)-1]
|
|
|
+ textRune = textRune[:len(textRune)-1]
|
|
|
}
|
|
|
+ text = string(textRune)
|
|
|
}
|
|
|
return text
|
|
|
}
|