install: use include instead of regex.

This commit is contained in:
Mike McQuaid 2017-04-17 14:56:04 +01:00 committed by GitHub
parent 363b26801a
commit 3b14aa2e90

View File

@ -241,7 +241,7 @@ module Homebrew
end
# Do not search taps if the formula name is qualified
return if e.name =~ %r{/}
return if e.name.include?("/")
ohai "Searching taps..."
taps_search_results = search_taps(query)
case taps_search_results.length