From c394c42b4c8a5c49b8a6b9d3d245481acad099c1 Mon Sep 17 00:00:00 2001 From: NewName Date: Mon, 7 Apr 2025 14:08:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgithubassets=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ghproxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghproxy/main.go b/ghproxy/main.go index 61ad003..824cc55 100644 --- a/ghproxy/main.go +++ b/ghproxy/main.go @@ -32,7 +32,7 @@ var ( regexp.MustCompile(`^(?:https?://)?huggingface\.co(?:/spaces)?/([^/]+)/(.+)$`), regexp.MustCompile(`^(?:https?://)?cdn-lfs\.hf\.co(?:/spaces)?/([^/]+)/([^/]+)(?:/(.*))?$`), regexp.MustCompile(`^(?:https?://)?download\.docker\.com/([^/]+)/.*\.(tgz|zip)$`), - regexp.MustCompile(`^(?:https?://)?([a-zA-Z0-9-]+\.)*githubassets\.com/([^/]+)/([^/]+)/.+?/.+$`), + regexp.MustCompile(`^(?:https?://)?([a-zA-Z0-9-]+\.)*githubassets\.com/([^/]+)/.+?$`), } httpClient *http.Client config *Config