From 5fe7d8ee6a1dc3e84093dc367081f028dff419af 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 #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 6eaa7be715a7..ff9b3afcdde9 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -451,7 +451,7 @@ def _fetch raise end - if @url !~ %r{^https?://+([^.]+).s3.amazonaws.com/+(.+)$} + if @url !~ %r{^https?://+([^.].+).s3.amazonaws.com/+(.+)$} raise "Bad S3 URL: " + @url end bucket = $1