From 80f8f9b9358b99aee3fa92ece7cd2310cec95287 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 12 Apr 2019 15:18:18 -0400 Subject: [PATCH] allow _ in names too --- honk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honk.go b/honk.go index 5805a81..cb3a0ef 100644 --- a/honk.go +++ b/honk.go @@ -1183,7 +1183,7 @@ func serve() { getters.HandleFunc("/u/{name:[[:alnum:]]+}/outbox", outbox) getters.HandleFunc("/a", avatate) getters.HandleFunc("/d/{xid:[[:alnum:].]+}", servefile) - getters.HandleFunc("/emu/{xid:[[:alnum:].]+}", serveemu) + getters.HandleFunc("/emu/{xid:[[:alnum:]_.]+}", serveemu) getters.HandleFunc("/h/{name:[[:alnum:]]+}", viewhonker) getters.HandleFunc("/.well-known/webfinger", fingerlicker)