all repos — honk @ be27b8225efde69875ae697297501da8aea488b4

my fork of honk

allow _ in hashtag
Ted Unangst tedu@tedunangst.com
Tue, 17 Sep 2019 09:56:20 -0400
commit

be27b8225efde69875ae697297501da8aea488b4

parent

ed5c8eb7e2f2aaca9e6ae4a00b3f480486149490

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

jump to
M fun.gofun.go

@@ -151,7 +151,7 @@ s := string(b[:])

return s } -var re_hashes = regexp.MustCompile(`(?:^| )#[[:alpha:]][[:alnum:]-]*`) +var re_hashes = regexp.MustCompile(`(?:^| )#[[:alpha:]][[:alnum:]_-]*`) func ontologies(s string) []string { m := re_hashes.FindAllString(s, -1)
M web.goweb.go

@@ -1479,7 +1479,7 @@ getters.HandleFunc("/"+userSep+"/{name:[[:alnum:]]+}/followers", emptiness)

getters.HandleFunc("/"+userSep+"/{name:[[:alnum:]]+}/following", emptiness) getters.HandleFunc("/a", avatate) getters.HandleFunc("/o", thelistingoftheontologies) - getters.HandleFunc("/o/{name:[a-z0-9-]+}", showontology) + getters.HandleFunc("/o/{name:[a-z0-9_-]+}", showontology) getters.HandleFunc("/d/{xid:[[:alnum:].]+}", servefile) getters.HandleFunc("/emu/{xid:[[:alnum:]_.-]+}", serveemu) getters.HandleFunc("/meme/{xid:[[:alnum:]_.-]+}", servememe)