more flexible re for mentions

This commit is contained in:
Ted Unangst 2019-05-16 17:37:43 -04:00
parent 098e5bd200
commit 5fb2e9c0a5
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

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