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