handle case where hahstag begins a newline
This commit is contained in:
parent
5ccc483e66
commit
65af1f4ac3
2
fun.go
2
fun.go
|
@ -258,7 +258,7 @@ func xfiltrate() string {
|
||||||
return xcelerate(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 {
|
func ontologies(s string) []string {
|
||||||
m := re_hashes.FindAllString(s, -1)
|
m := re_hashes.FindAllString(s, -1)
|
||||||
|
|
Loading…
Reference in New Issue