From 13239276f00f3036081ee4b2b8262a287342f060 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 27 Dec 2014 20:35:26 +0000 Subject: audit: improve FileUtils check. Match the parens properly and only interpolate once. Closes Homebrew/homebrew#35288. Closes Homebrew/homebrew#35291. --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index b2264be40..d4bc0be20 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -548,7 +548,7 @@ class FormulaAuditor problem "#{$1} is unnecessary; just use #{$2}" end - if line =~ /system (["'](#{FILEUTILS_METHODS}))["' ]/ + if line =~ /system (["'](#{FILEUTILS_METHODS})["' ])/o system = $1 method = $2 problem "Use the `#{method}` Ruby method instead of `system #{system}`" -- cgit v1.2.3