From 234f4b2dadb3187fed5cdb1fe94f939ed4465b6e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 18 Sep 2019 18:30:04 -0400 Subject: [PATCH] more flexibility in naming --- web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web.go b/web.go index c2c2272..9dffc7c 100644 --- a/web.go +++ b/web.go @@ -1505,9 +1505,9 @@ func serve() { loggedin.Handle("/saveuser", login.CSRFWrap("saveuser", http.HandlerFunc(saveuser))) loggedin.Handle("/ximport", login.CSRFWrap("ximport", http.HandlerFunc(ximport))) loggedin.HandleFunc("/honkers", showhonkers) - loggedin.HandleFunc("/h/{name:[[:alnum:]]+}", showhonker) + loggedin.HandleFunc("/h/{name:[[:alnum:]_.-]+}", showhonker) loggedin.HandleFunc("/h", showhonker) - loggedin.HandleFunc("/c/{name:[[:alnum:]]+}", showcombo) + loggedin.HandleFunc("/c/{name:[[:alnum:]_.-]+}", showcombo) loggedin.HandleFunc("/c", showcombos) loggedin.HandleFunc("/t", showconvoy) loggedin.HandleFunc("/q", showsearch)