|
|
|
@ -70,8 +70,17 @@ func unpucker(s string) string {
|
|
|
|
|
return string(x)
|
|
|
|
|
}
|
|
|
|
|
s = re_alltheshitz.ReplaceAllStringFunc(s, fixer)
|
|
|
|
|
x := make([]byte, 0, len(s))
|
|
|
|
|
|
|
|
|
|
zw := false
|
|
|
|
|
for _, c := range s {
|
|
|
|
|
if runewidth.RuneWidth(c) == 0 {
|
|
|
|
|
zw = true
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if zw {
|
|
|
|
|
x := make([]byte, 0, len(s))
|
|
|
|
|
zw = false
|
|
|
|
|
for _, c := range s {
|
|
|
|
|
if runewidth.RuneWidth(c) == 0 {
|
|
|
|
|
if zw {
|
|
|
|
@ -85,4 +94,6 @@ func unpucker(s string) string {
|
|
|
|
|
x = append(x, []byte(q)...)
|
|
|
|
|
}
|
|
|
|
|
return string(x)
|
|
|
|
|
}
|
|
|
|
|
return s
|
|
|
|
|
}
|
|
|
|
|