From 7a9b2de0a73c9f749a0b3c989f2a8f58fddab608 Mon Sep 17 00:00:00 2001 From: NewName Date: Wed, 25 Dec 2024 06:24:59 +0800 Subject: [PATCH] Update main.go --- ghproxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghproxy/main.go b/ghproxy/main.go index 5b4a559..b84cafc 100644 --- a/ghproxy/main.go +++ b/ghproxy/main.go @@ -31,7 +31,7 @@ var ( regexp.MustCompile(`^(?:https?://)?api\.github\.com/repos/([^/]+)/([^/]+)/.*`), regexp.MustCompile(`^(?:https?://)?huggingface\.co/spaces/([^/]+)/([^/]+).*`), regexp.MustCompile(`^(?:https?://)?cdn-lfs\.hf\.co/repos/.+`), - regexp.MustCompile(`^(?:https?://)?download\.docker\.com/.+\.(tgz|zip)$`), + regexp.MustCompile(`^(?:https?://)?download\.docker\.com/([^/]+)/.*\.(tgz|zip)$`) } httpClient *http.Client config *Config