Fix parsing extension from URL.

This commit is contained in:
Markus Reiter 2017-08-05 22:05:04 +02:00
parent 7a17a166ec
commit bd25c2e219

View File

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