more flexible re for mentions
This commit is contained in:
parent
098e5bd200
commit
5fb2e9c0a5
2
fun.go
2
fun.go
|
@ -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…
Reference in New Issue