From 2b8a6ddd204ce5895821ab8af5a82faaf39d5ec8 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 28 Aug 2019 11:40:54 -0400 Subject: [PATCH] require leading alpha for hashtag --- fun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fun.go b/fun.go index 424b021..97fdf1a 100644 --- a/fun.go +++ b/fun.go @@ -151,7 +151,7 @@ func xfiltrate() string { return s } -var re_hashes = regexp.MustCompile(`(?:^|\W)#[[:alnum:]-]+`) +var re_hashes = regexp.MustCompile(`(?:^|\W)#[[:alpha:]][[:alnum:]-]*`) func ontologies(s string) []string { m := re_hashes.FindAllString(s, -1)