all repos — honk @ 9bddacc82837e639716398a48037dceea5e4e074

my fork of honk

handle case where hahstag begins a newline
Ted Unangst tedu@tedunangst.com
Tue, 12 Nov 2019 19:03:48 -0500
commit

9bddacc82837e639716398a48037dceea5e4e074

parent

7b3656eba9e23f932da54a1c8708fa1b5513a761

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

jump to
M fun.gofun.go

@@ -258,7 +258,7 @@ rand.Read(b[:])

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)