1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00

Allow colon between fixing word and issue (#7207)

* Allow colon between fixing word and issue

* update test
This commit is contained in:
zeripath
2019-06-15 05:00:32 +01:00
committed by techknowlogick
parent 9ce4d89e99
commit 94ceaf1c0c
2 changed files with 27 additions and 1 deletions

View File

@ -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() {