aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-12-27 20:35:26 +0000
committerMike McQuaid2014-12-27 20:35:26 +0000
commit13239276f00f3036081ee4b2b8262a287342f060 (patch)
treeea8ad79e2e414b07cfff9d435dd1608c2e1b17ad /Library
parent77a1c6f1661b188b5f2acaca0db1bbf4eb7c6262 (diff)
downloadbrew-13239276f00f3036081ee4b2b8262a287342f060.tar.bz2
audit: improve FileUtils check.
Match the parens properly and only interpolate once. Closes Homebrew/homebrew#35288. Closes Homebrew/homebrew#35291.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
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}`"