diff options
| author | Baptiste Fontaine | 2016-01-25 11:48:02 +0100 |
|---|---|---|
| committer | Baptiste Fontaine | 2016-01-25 17:19:51 +0100 |
| commit | e1875b7a43f233252d795a4e10ee4125658466e8 (patch) | |
| tree | 14c5246f284769e37a262c50854d67b2998b21dc /Library/Homebrew | |
| parent | d0998a4907f96d7d85f6efb812bc5a11d71f68a5 (diff) | |
| download | brew-e1875b7a43f233252d795a4e10ee4125658466e8.tar.bz2 | |
audit: avoid false positive pkgshare problems
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
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 |
