Merge pull request #3009 from reitermarkus/fix-cask-url-ext

Fix parsing extension from URL.
This commit is contained in:
Markus Reiter 2017-08-05 23:16:44 +02:00 committed by GitHub
commit cf6a568f98

View File

@ -185,7 +185,7 @@ module Hbc
end
def ext
Pathname.new(@url).extname
Pathname.new(@url).extname[/[^?]+/]
end
end