Allow S3 buckets to have dots

Closes Homebrew/homebrew#49729.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
Kel Cecil 2016-03-02 14:02:44 -05:00 committed by Tim D. Smith
parent 57a81f9e22
commit 59536356b6

View File

@ -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