all repos — honk @ f9f0eb7bb0e5665c02bbfeb39adcfb0f23b56921

my fork of honk

avoid empty strings
Ted Unangst tedu@tedunangst.com
Tue, 25 Feb 2020 13:29:09 -0500
commit

f9f0eb7bb0e5665c02bbfeb39adcfb0f23b56921

parent

ddb6d06fe72bbf4221328d0776be21e53382660a

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M fun.gofun.go

@@ -298,6 +298,9 @@

func grapeape(s string) []Mention { var mentions []Mention for _, m := range strings.Split(s, " ") { + if m == "" { + continue + } where := gofish(m) if where != "" { mentions = append(mentions, Mention{Who: m, Where: where})