aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-04-29 09:32:39 -0700
committerAdam Vandenberg2012-04-29 09:32:39 -0700
commitc84add7bea4b853632bf16db8931eceaf3d523b2 (patch)
tree29d9b43795a4e7abcf3f6b3be80354ad3defca75 /Library
parent558a54d53fe77a19a7c5983129657ca26852af23 (diff)
downloadhomebrew-c84add7bea4b853632bf16db8931eceaf3d523b2.tar.bz2
audit: reduce false-positives
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 84054925c..e0507e1eb 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -63,7 +63,7 @@ def audit_formula_text name, text
end
# Prefer formula path shortcuts in Pathname+
- if text =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share))}
+ if text =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share)[/'"])}
problems << " * \"(#{$1}...#{$2})\" should be \"(#{$3}+...)\""
end