the zalgo filter was accidentally eating newlines too
Ted Unangst tedu@tedunangst.com
Sat, 26 Aug 2023 19:03:11 -0400
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
skulduggery.go
→
skulduggery.go
@@ -29,6 +29,9 @@ s = re_moredumb.ReplaceAllString(s, ".")
zw := false for _, c := range s { + if c == '\n' { + continue + } if runewidth.RuneWidth(c) == 0 { zw = true break