aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2016-08-25 20:40:26 +0100
committerDominyk Tiller2016-08-28 03:08:21 +0100
commitab203a749f050486bd174fc7e29bd2a246333b80 (patch)
tree1a8e7791775458e32ca73e227d84496898143a13
parent24be5c4a392dbe3abb66c765f52cf85cec5e8b8c (diff)
downloadbrew-ab203a749f050486bd174fc7e29bd2a246333b80.tar.bz2
search: handle name@v.v formulae.
Before this change: ``` ~> brew search openssl@1.1 openssl@1.1 ✔ ==> Did you mean to perform a regular expression search? ==> Surround your query with /slashes/ to search by regex. ```
-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 526c7220d..2a100083d 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -83,7 +83,7 @@ module Homebrew
end
if $stdout.tty?
- metacharacters = %w[\\ | ( ) [ ] { } ^ $ * + ? .]
+ metacharacters = %w[\\ | ( ) [ ] { } ^ $ * + ?]
bad_regex = metacharacters.any? do |char|
ARGV.any? do |arg|
arg.include?(char) && !arg.start_with?("/")