From 02433181f496e7a2816322bb06be7d9b1608ddbe Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 26 Nov 2019 13:48:39 -0500 Subject: [PATCH] the avatar regexp should match the meme one. keep together. --- fun.go | 1 + web.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fun.go b/fun.go index 6e54cba..8c9c77d 100644 --- a/fun.go +++ b/fun.go @@ -341,6 +341,7 @@ func herdofemus(noise string) []Emu { } var re_memes = regexp.MustCompile("meme: ?([^\n]+)") +var re_avatar = regexp.MustCompile("avatar: ?([^\n]+)") func memetize(honk *Honk) { repl := func(x string) string { diff --git a/web.go b/web.go index dcb94ae..bdefaec 100644 --- a/web.go +++ b/web.go @@ -1102,8 +1102,6 @@ func honkpage(w http.ResponseWriter, u *login.UserInfo, honks []*Honk, templinfo } } -var re_avatar = regexp.MustCompile("avatar: ?([[:alnum:]_.-]+)") - func saveuser(w http.ResponseWriter, r *http.Request) { whatabout := r.FormValue("whatabout") u := login.GetUserInfo(r)