From 59536356b6fe4f571dd189faa8be88541b5463a7 Mon Sep 17 00:00:00 2001 From: Kel Cecil Date: Wed, 2 Mar 2016 14:02:44 -0500 Subject: [PATCH] Allow S3 buckets to have dots Closes Homebrew/homebrew#49729. Signed-off-by: Tim D. Smith --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 6eaa7be715..ff9b3afcdd 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