From bd25c2e2199e0623288957c55c7b1175041bb121 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 5 Aug 2017 22:05:04 +0200 Subject: [PATCH] Fix parsing extension from URL. --- Library/Homebrew/cask/lib/hbc/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/download_strategy.rb b/Library/Homebrew/cask/lib/hbc/download_strategy.rb index 28ae704ee0..016bb66e6e 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