last char of mention should not include punctuation
This commit is contained in:
parent
56b06f1a02
commit
45a091ac6f
1 changed files with 1 additions and 1 deletions
2
fun.go
2
fun.go
|
|
@ -135,7 +135,7 @@ type Mention struct {
|
||||||
where string
|
where string
|
||||||
}
|
}
|
||||||
|
|
||||||
var re_mentions = regexp.MustCompile(`@[[:alnum:]._-]+@[[:alnum:].-]+`)
|
var re_mentions = regexp.MustCompile(`@[[:alnum:]._-]+@[[: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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue