aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 6eaa7be71..ff9b3afcd 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -451,7 +451,7 @@ class S3DownloadStrategy < CurlDownloadStrategy
raise
end
- if @url !~ %r{^https?://+([^.]+).s3.amazonaws.com/+(.+)$}
+ if @url !~ %r{^https?://+([^.].+).s3.amazonaws.com/+(.+)$}
raise "Bad S3 URL: " + @url
end
bucket = $1