From e1875b7a43f233252d795a4e10ee4125658466e8 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 25 Jan 2016 11:48:02 +0100 Subject: audit: avoid false positive pkgshare problems --- Library/Homebrew/cmd/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3