aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2017-08-05 23:16:44 +0200
committerGitHub2017-08-05 23:16:44 +0200
commitcf6a568f9842b206fcef7425aac45ffce0405a16 (patch)
treeefa462f1aaeaad62180bc3fa2fe7356997e2e0b7 /Library
parent7a17a166ecd3145b501cb190d9b4cc1e6dba31ba (diff)
parentbd25c2e2199e0623288957c55c7b1175041bb121 (diff)
downloadbrew-cf6a568f9842b206fcef7425aac45ffce0405a16.tar.bz2
Merge pull request #3009 from reitermarkus/fix-cask-url-ext
Fix parsing extension from URL.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/download_strategy.rb b/Library/Homebrew/cask/lib/hbc/download_strategy.rb
index 28ae704ee..016bb66e6 100644
--- a/Library/Homebrew/cask/lib/hbc/download_strategy.rb
+++ b/Library/Homebrew/cask/lib/hbc/download_strategy.rb
@@ -185,7 +185,7 @@ module Hbc
end
def ext
- Pathname.new(@url).extname
+ Pathname.new(@url).extname[/[^?]+/]
end
end