the zalgo filter was accidentally eating newlines too
This commit is contained in:
parent
db63bd3fc3
commit
314949d045
|
@ -29,6 +29,9 @@ func demoji(s string) string {
|
|||
|
||||
zw := false
|
||||
for _, c := range s {
|
||||
if c == '\n' {
|
||||
continue
|
||||
}
|
||||
if runewidth.RuneWidth(c) == 0 {
|
||||
zw = true
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue