feat: highlight issue references with : (#8101) (#8404)

* 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
This commit is contained in:
6543 2019-10-07 05:41:46 +02:00 committed by techknowlogick
parent b0dcf417ea
commit c9b8c12bc9
4 changed files with 11 additions and 3 deletions

View file

@ -160,6 +160,7 @@ func TestRegExp_issueReferenceKeywordsPat(t *testing.T) {
"#2",
"[#2]",
"please see go-gitea/gitea#5",
"#2:",
}
falseTestCases := []string{
"kb#2",