Skip to content

Commit

Permalink
fix pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
subframe7536 authored Oct 17, 2024
1 parent 78b311f commit 8695139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ function handle_special_urls($url)
# Github.com
if ($url -match 'github.com/(?<owner>[^/]+)/(?<repo>[^/]+)/releases/download/(?<tag>[^/]+)/(?<file>[^/#]+)(?<filename>.*)') {
if ($gh = $env:GITHUB) {
$url = $url -replace "github.com", $gh
$url = $url -replace "github.com/", "$gh/"
}
if ($token = Get-GitHubToken) {
$headers = @{ "Authorization" = "token $token" }
Expand Down

0 comments on commit 8695139

Please sign in to comment.