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
|
zw := false
|
||||||
for _, c := range s {
|
for _, c := range s {
|
||||||
|
if c == '\n' {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if runewidth.RuneWidth(c) == 0 {
|
if runewidth.RuneWidth(c) == 0 {
|
||||||
zw = true
|
zw = true
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue