aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-04-17 14:56:04 +0100
committerGitHub2017-04-17 14:56:04 +0100
commit3b14aa2e90b63e6a694b985653268a1643fb6f14 (patch)
tree0703694b285aab4fd4eecfcf0ba511f2414b9336 /Library/Homebrew/cmd
parent363b26801a841faf7590f13a10cdd111bb0f4192 (diff)
downloadbrew-3b14aa2e90b63e6a694b985653268a1643fb6f14.tar.bz2
install: use include instead of regex.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/install.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 2b54844fc..fd7aede86 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -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