handle case where hahstag begins a newline
Ted Unangst tedu@tedunangst.com
Tue, 12 Nov 2019 19:03:48 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
fun.go
→
fun.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)