more flexible re for mentions

master
Ted Unangst 5 years ago
parent 098e5bd200
commit 5fb2e9c0a5

@ -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 {

Loading…
Cancel
Save