all repos — honk @ 4a8a746c548679c01be653c221aef4e624b8f0cd

my fork of honk

be a bit more permissive with the quick mentions
Ted Unangst tedu@tedunangst.com
Mon, 01 May 2023 14:27:39 -0400
commit

4a8a746c548679c01be653c221aef4e624b8f0cd

parent

5e85329744da423d4c1488143287c36ba51db331

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M fun.gofun.go

@@ -463,7 +463,7 @@ }

honk.Noise = re_memes.ReplaceAllStringFunc(honk.Noise, repl) } -var re_quickmention = regexp.MustCompile("(^|[ \n])@[[:alnum:]]+([ \n.,']|$)") +var re_quickmention = regexp.MustCompile("(^|[ \n])@[[:alnum:]_]+([ \n:;.,']|$)") func quickrename(s string, userid int64) string { nonstop := true

@@ -479,6 +479,7 @@ prefix += "@"

m = m[1:] tail := "" if last := m[len(m)-1]; last == ' ' || last == '\n' || + last == ':' || last == ';' || last == '.' || last == ',' || last == '\'' { tail = m[len(m)-1:] m = m[:len(m)-1]