From 8ea7ad22189ee15a3e6850c705b342d1cc388c0c Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 8 Jul 2018 20:13:41 +0200 Subject: [PATCH] Fix `basename_without_params`. --- Library/Homebrew/download_strategy.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 3a8f3d24a6..2447777ff3 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -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