From 8695139091ac4fb0af8be9fee1656f8293a52bcf Mon Sep 17 00:00:00 2001 From: subframe7536 <1667077010@qq.com> Date: Thu, 17 Oct 2024 12:13:31 +0800 Subject: [PATCH] fix pattern --- lib/core.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.ps1 b/lib/core.ps1 index eacc35a195..183e15fccf 100644 --- a/lib/core.ps1 +++ b/lib/core.ps1 @@ -1355,7 +1355,7 @@ function handle_special_urls($url) # Github.com if ($url -match 'github.com/(?[^/]+)/(?[^/]+)/releases/download/(?[^/]+)/(?[^/#]+)(?.*)') { if ($gh = $env:GITHUB) { - $url = $url -replace "github.com", $gh + $url = $url -replace "github.com/", "$gh/" } if ($token = Get-GitHubToken) { $headers = @{ "Authorization" = "token $token" }