diff options
| author | Xu Cheng | 2016-03-06 13:28:31 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-03-06 13:51:06 +0800 |
| commit | c540343903e9d6630775828dcf72b455f6641ea5 (patch) | |
| tree | 9326a57aafd7218886d899e0bdc1d4af8ac9307b | |
| parent | 9f96e41b40f52313fbc7832df631827f5e3bcacb (diff) | |
| download | brew-c540343903e9d6630775828dcf72b455f6641ea5.tar.bz2 | |
download_strategy: correct S3 url regex
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
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 |
