diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 32ff14de1898249b336e5dabc927896f43c9066a..df068c99f3fd13e095c90a1176fb93b10c814e9c 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -735,7 +735,7 @@ class FormulaAuditor end bin_names.each do |name| ["system", "shell_output", "pipe_output"].each do |cmd| - if text =~ /(def test|test do).*#{cmd}[\(\s]+['"]#{name}/m + if text =~ /(def test|test do).*#{cmd}[\(\s]+['"]#{name}[\s'"]/m problem %(fully scope test #{cmd} calls e.g. #{cmd} "\#{bin}/#{name}") end end