0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-14 00:01:05 +02:00

Apply suggestion from @silverwind

Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
silverwind 2026-03-01 14:33:17 +01:00 committed by GitHub
parent 5c3929a442
commit e66a3d4630
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -382,7 +382,6 @@ func TestRegExp_anySHA1Pattern(t *testing.T) {
"https://github.com/jquery/jquery/commit/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/blob/main/abcdef1/file": {},
"non-url": {},