增加对githubassets的支持

This commit is contained in:
LambdaYH
2025-04-07 13:46:44 +08:00
parent d9724c657c
commit 104c2a01d5

View File

@@ -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