last char of mention should not include punctuation
Ted Unangst tedu@tedunangst.com
Tue, 25 Jun 2019 16:44:48 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
fun.go
→
fun.go
@@ -135,7 +135,7 @@ who 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+`) func grapevine(s string) []string {