diff options
| author | Kel Cecil | 2016-03-02 14:02:44 -0500 |
|---|---|---|
| committer | Tim D. Smith | 2016-03-03 09:43:04 -0800 |
| commit | 59536356b6fe4f571dd189faa8be88541b5463a7 (patch) | |
| tree | 2ed868f808c37bb5add411d0082ee373743fa0c5 /Library | |
| parent | 57a81f9e22ef2db7fefc432adafe2d63a2206bc8 (diff) | |
| download | brew-59536356b6fe4f571dd189faa8be88541b5463a7.tar.bz2 | |
Allow S3 buckets to have dots
Closes Homebrew/homebrew#49729.
Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
| -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 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 |
