From ff756fedae946c851d4f2835ea5f4c7815537fcc Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 27 Aug 2019 21:44:56 -0400 Subject: [PATCH] i will allow hyphens in hashtags --- fun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fun.go b/fun.go index ca11001..365fc58 100644 --- a/fun.go +++ b/fun.go @@ -149,7 +149,7 @@ func xfiltrate() string { return s } -var re_hashes = regexp.MustCompile(`(?:^|\W)#[[:alnum:]]+`) +var re_hashes = regexp.MustCompile(`(?:^|\W)#[[:alnum:]-]+`) func ontologies(s string) []string { m := re_hashes.FindAllString(s, -1)