summaryrefslogtreecommitdiffstats
path: root/models/action_test.go
diff options
context:
space:
mode:
authorRinat <paladin2012gnu@gmail.com>2019-09-06 03:39:54 +0300
committertechknowlogick <techknowlogick@gitea.io>2019-09-05 20:39:54 -0400
commitb660a732ae283d863636ead9cc1a365ce1c0edc1 (patch)
treed4ed1987a44e5f1a0c1c23068f0aaa2c238e32c4 /models/action_test.go
parent79c8bc0e51db9ef1579b72d0510cac9aaded06db (diff)
downloadgitea-b660a732ae283d863636ead9cc1a365ce1c0edc1.tar.gz
gitea-b660a732ae283d863636ead9cc1a365ce1c0edc1.zip
feat: highlight issue references with : (#8101)
* feat: highlight issue references with : e.g. #1287: my commit msg e.g. ABC-1234: my commit msg * ref: update model regex to consistent with issueNumericPattern * test: check highlight issue with : in commits messages
Diffstat (limited to 'models/action_test.go')
-rw-r--r--models/action_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/action_test.go b/models/action_test.go
index e2546044d4..16fdc7adcc 100644
--- a/models/action_test.go
+++ b/models/action_test.go
@@ -186,6 +186,7 @@ func TestRegExp_issueReferenceKeywordsPat(t *testing.T) {
"#2",
"[#2]",
"please see go-gitea/gitea#5",
+ "#2:",
}
falseTestCases := []string{
"kb#2",