From 65af1f4ac381cf413cc2483578c0e5566998817e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 12 Nov 2019 19:03:48 -0500 Subject: [PATCH] handle case where hahstag begins a newline --- fun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fun.go b/fun.go index b3ecf33..5cb210b 100644 --- a/fun.go +++ b/fun.go @@ -258,7 +258,7 @@ func xfiltrate() string { return xcelerate(b[:]) } -var re_hashes = regexp.MustCompile(`(?:^| )#[[:alnum:]]*[[:alpha:]][[:alnum:]_-]*`) +var re_hashes = regexp.MustCompile(`(?:^| |>)#[[:alnum:]]*[[:alpha:]][[:alnum:]_-]*`) func ontologies(s string) []string { m := re_hashes.FindAllString(s, -1)