From 104c2a01d56303b9f5fae22ccfca83fdf04ca452 Mon Sep 17 00:00:00 2001 From: LambdaYH Date: Mon, 7 Apr 2025 13:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9githubassets?= =?UTF-8?q?=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ghproxy/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ghproxy/main.go b/ghproxy/main.go index 27dfa8c..61ad003 100644 --- a/ghproxy/main.go +++ b/ghproxy/main.go @@ -32,6 +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/([^/]+)/([^/]+)/.+?/.+$`), } httpClient *http.Client config *Config