From 562e47f31ced80adc6ffa629e2d8459465c369e9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 17 Sep 2015 15:45:36 -0400 Subject: finish all new template for current ones --- routers/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/repo/issue.go') diff --git a/routers/repo/issue.go b/routers/repo/issue.go index f9a560827a..cc344bd080 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -367,7 +367,7 @@ func NewIssuePost(ctx *middleware.Context, form auth.CreateIssueForm) { mentions := base.MentionPattern.FindAllString(issue.Content, -1) if len(mentions) > 0 { for i := range mentions { - mentions[i] = mentions[i][1:] + mentions[i] = strings.TrimSpace(mentions[i])[1:] } if err := models.UpdateMentions(mentions, issue.ID); err != nil { -- cgit v1.2.3