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
This commit is contained in:
Rinat
2019-09-06 03:39:54 +03:00
committed by techknowlogick
parent 79c8bc0e51
commit b660a732ae
4 changed files with 11 additions and 3 deletions

View File

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