aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2016-01-25 11:48:02 +0100
committerBaptiste Fontaine2016-01-25 17:19:51 +0100
commite1875b7a43f233252d795a4e10ee4125658466e8 (patch)
tree14c5246f284769e37a262c50854d67b2998b21dc
parentd0998a4907f96d7d85f6efb812bc5a11d71f68a5 (diff)
downloadbrew-e1875b7a43f233252d795a4e10ee4125658466e8.tar.bz2
audit: avoid false positive pkgshare problems
-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 91a5cce2b..d07b6b865 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -878,11 +878,11 @@ class FormulaAuditor
problem "`#{$1}` is now unnecessary"
end
- if line =~ /#\{share\}\/#{formula.name}/
+ if line =~ %r{#\{share\}/#{formula.name}[/'"]}
problem "Use \#{pkgshare} instead of \#{share}/#{formula.name}"
end
- if line =~ /share\/"#{formula.name}"/
+ if line =~ %r{share/"#{formula.name}[/'"]}
problem "Use pkgshare instead of (share/\"#{formula.name}\")"
end
end