forked from forgejo/forgejo
Backport #29487 by @charles7668
Close #29484

Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
(cherry picked from commit 3a8877c058fd8583f28711750cf26716526200c4)
This commit is contained in:
parent
5099d3c747
commit
e6441a18d2
2 changed files with 6 additions and 2 deletions
|
@ -429,6 +429,8 @@ func TestRegExp_issueNumericPattern(t *testing.T) {
|
|||
" #12",
|
||||
"#12:",
|
||||
"ref: #12: msg",
|
||||
"\"#1234\"",
|
||||
"'#1234'",
|
||||
}
|
||||
falseTestCases := []string{
|
||||
"# 1234",
|
||||
|
@ -459,6 +461,8 @@ func TestRegExp_issueAlphanumericPattern(t *testing.T) {
|
|||
"(ABC-123)",
|
||||
"[ABC-123]",
|
||||
"ABC-123:",
|
||||
"\"ABC-123\"",
|
||||
"'ABC-123'",
|
||||
}
|
||||
falseTestCases := []string{
|
||||
"RC-08",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue