require a letter in hashtags. sorry #1

This commit is contained in:
Ted Unangst 2019-11-05 02:51:30 -05:00
parent 2c8204f6b6
commit fe1ef8d89e
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -256,7 +256,7 @@ func xfiltrate() string {
return xcelerate(b[:]) return xcelerate(b[:])
} }
var re_hashes = regexp.MustCompile(`(?:^| )#[[:alnum:]][[: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)