We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec55cb5 commit c94da33Copy full SHA for c94da33
lib/Perl/Dist/Strawberry.pm
@@ -452,7 +452,9 @@ sub mirror_url {
452
453
# Check if the file already is downloaded.
454
my $file = $url;
455
- $file =~ s|^.+\/||;# Delete anything before the last forward slash, leaves only the filename.
+ # Delete anything before the last slash, leaves only the filename.
456
+ # The backward slashes allow for file URLs.
457
+ $file =~ s|^.+[/\\]||;
458
my $target = catfile( $dir, $file );
459
460
return $target if $self->global->{offline} and -f $target;
0 commit comments