aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 23:09:43 -0600
committerJack Nagel2013-02-18 12:13:36 -0600
commit22a3ecff28de65637e0006aaefff0d226ce9c39c (patch)
tree0b0c98152be27e3e6f01be3894033e5691a22ed2 /Library
parentf037be514865a8dc141b7c870e7640939b5fa22a (diff)
downloadbrew-22a3ecff28de65637e0006aaefff0d226ce9c39c.tar.bz2
Silence warning about unescaped square brackets
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index b391bc0e3..4c5508e76 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -369,11 +369,11 @@ class FormulaAuditor
end
# Avoid hard-coding compilers
- if text =~ %r[(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?(gcc|llvm-gcc|clang)['" ]]
+ if text =~ %r{(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?(gcc|llvm-gcc|clang)['" ]}
problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{$3}\""
end
- if text =~ %r[(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?((g|llvm-g|clang)\+\+)['" ]]
+ if text =~ %r{(system|ENV\[.+\]\s?=)\s?['"](/usr/bin/)?((g|llvm-g|clang)\+\+)['" ]}
problem "Use \"\#{ENV.cxx}\" instead of hard-coding \"#{$3}\""
end