summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-06-15 05:00:32 +0100
committertechknowlogick <hello@techknowlogick.com>2019-06-15 00:00:32 -0400
commit94ceaf1c0c2ae0b5abcb3b62c5c903258659615c (patch)
treed40dd10cc0ac1791c5377633dba9d59cf047c8ca /models/action.go
parent9ce4d89e9922cc87bdb13d122339ae165a080c3d (diff)
downloadgitea-94ceaf1c0c2ae0b5abcb3b62c5c903258659615c.tar.gz
gitea-94ceaf1c0c2ae0b5abcb3b62c5c903258659615c.zip
Allow colon between fixing word and issue (#7207)
* Allow colon between fixing word and issue * update test
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index b4f4b1cb6d..ee5d052509 100644
--- a/models/action.go
+++ b/models/action.go
@@ -67,7 +67,7 @@ var (
const issueRefRegexpStr = `(?:([0-9a-zA-Z-_\.]+)/([0-9a-zA-Z-_\.]+))?(#[0-9]+)+`
func assembleKeywordsPattern(words []string) string {
- return fmt.Sprintf(`(?i)(?:%s) %s`, strings.Join(words, "|"), issueRefRegexpStr)
+ return fmt.Sprintf(`(?i)(?:%s)(?::?) %s`, strings.Join(words, "|"), issueRefRegexpStr)
}
func init() {