more flexible re for mentions

This commit is contained in:
Ted Unangst 2019-05-16 17:37:43 -04:00
parent 098e5bd200
commit 5fb2e9c0a5

2
fun.go
View file

@ -96,7 +96,7 @@ type Mention struct {
where string where string
} }
var re_mentions = regexp.MustCompile(`@[[:alnum:]]+@[[:alnum:].]+`) var re_mentions = regexp.MustCompile(`@[[:alnum:]._-]+@[[:alnum:].-]+`)
var re_urltions = regexp.MustCompile(`@https://\S+`) var re_urltions = regexp.MustCompile(`@https://\S+`)
func grapevine(s string) []string { func grapevine(s string) []string {