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
commit595fa2a97657c125d611b7b37356787dd254a0d3 (patch)
tree1b7fd55ea02c86e5fcd07d05426d7499558bfbea /Library
parent9c8e1e891ab8c0835285768f2ce9b93613e637c2 (diff)
downloadhomebrew-595fa2a97657c125d611b7b37356787dd254a0d3.tar.bz2
audit: improve FileUtils check.
Match the parens properly and only interpolate once. Closes #35288. Closes #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}`"