aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorBen Muschol2017-08-11 15:49:57 -0400
committerBen Muschol2017-08-11 15:49:57 -0400
commitb06fceda57ea8306e130ba11ccb2bd71f6907c23 (patch)
treecd0fdeac7cb51455055b21b8bbff9502f6a6d95a /Library/Homebrew/cmd
parent348fefea106d75bae5d1ffe814fc309540040d68 (diff)
downloadbrew-b06fceda57ea8306e130ba11ccb2bd71f6907c23.tar.bz2
Add a test
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/search.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 229139838..cd0f1d66c 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -48,7 +48,7 @@ module Homebrew
result = Formulary.factory(query).name
results = Array(result)
rescue FormulaUnavailableError
- results = search_taps(query)
+ results = search_taps(query.split('/')[-1])
end
puts Formatter.columns(results) unless results.empty?