aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-03-06 13:28:31 +0800
committerXu Cheng2016-03-06 13:51:06 +0800
commitc540343903e9d6630775828dcf72b455f6641ea5 (patch)
tree9326a57aafd7218886d899e0bdc1d4af8ac9307b
parent9f96e41b40f52313fbc7832df631827f5e3bcacb (diff)
downloadbrew-c540343903e9d6630775828dcf72b455f6641ea5.tar.bz2
download_strategy: correct S3 url regex
-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 ff9b3afcd..3532eeb6a 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