aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-04-26 19:18:12 -0500
committerJack Nagel2013-04-26 19:18:13 -0500
commitddb90ed0f89ae12a3c2d4da9c555c69bd79574f4 (patch)
tree012b54bc7cc4c331c8b0c98bb609c5a20c71e2c3 /Library/Homebrew/cmd
parente353ab7c291ba95071fed71709df67e700e8af61 (diff)
downloadhomebrew-ddb90ed0f89ae12a3c2d4da9c555c69bd79574f4.tar.bz2
audit: fix interpolation check
Fixes #19363.
Diffstat (limited to 'Library/Homebrew/cmd')
-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