mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-14 02:11:37 +02:00
Apply suggestion from @silverwind
Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
5c3929a442
commit
e66a3d4630
@ -382,7 +382,6 @@ func TestRegExp_anySHA1Pattern(t *testing.T) {
|
|||||||
"https://github.com/jquery/jquery/commit/0705be4": {
|
"https://github.com/jquery/jquery/commit/0705be4": {
|
||||||
CommitID: "0705be4",
|
CommitID: "0705be4",
|
||||||
},
|
},
|
||||||
// short hex strings in non-commit URLs should not match
|
|
||||||
"http://localhost:3000/foo/bar/src/main/20260304.txt": {},
|
"http://localhost:3000/foo/bar/src/main/20260304.txt": {},
|
||||||
"http://localhost:3000/foo/bar/blob/main/abcdef1/file": {},
|
"http://localhost:3000/foo/bar/blob/main/abcdef1/file": {},
|
||||||
"non-url": {},
|
"non-url": {},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user