aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-26 19:18:12 -0500
committerJack Nagel2013-04-26 19:18:13 -0500
commit62db042277dbd60d8b6ff74416e84c053a62b781 (patch)
tree67008f2f22da261dca9968b6805d7e9f54747811 /Library/Homebrew/cmd/audit.rb
parent7b7d4d2f1be65c3c82bdb61327d45ecbf726a450 (diff)
downloadbrew-62db042277dbd60d8b6ff74416e84c053a62b781.tar.bz2
audit: fix interpolation check
Fixes Homebrew/homebrew#19363.
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
-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 2ed56da80..96b8df3e2 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -331,7 +331,7 @@ class FormulaAuditor
end
# Check for string interpolation of single values.
- if text =~ /(system|inreplace|gsub!|change_make_var!) .* ['"]#\{(\w+(\.\w+)?)\}['"]/
+ if text =~ /(system|inreplace|gsub!|change_make_var!).*[ ,]"#\{([\w.]+)\}"/
problem "Don't need to interpolate \"#{$2}\" with #{$1}"
end