the zalgo filter was accidentally eating newlines too

This commit is contained in:
Ted Unangst 2023-08-26 19:03:11 -04:00
parent db63bd3fc3
commit 314949d045
1 changed files with 3 additions and 0 deletions

View File

@ -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