Fix basename_without_params.
This commit is contained in:
parent
bf856117ba
commit
8ea7ad2218
@ -76,6 +76,8 @@ class AbstractDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
def basename_without_params
|
def basename_without_params
|
||||||
|
return unless @url
|
||||||
|
|
||||||
# Strip any ?thing=wad out of .c?thing=wad style extensions
|
# Strip any ?thing=wad out of .c?thing=wad style extensions
|
||||||
File.basename(@url)[/[^?]+/]
|
File.basename(@url)[/[^?]+/]
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user