aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorRaza Hussain2017-03-26 12:43:09 -0400
committerRaza Hussain2017-03-26 12:43:09 -0400
commit94769652e03e6333432bbc5578a74601f47e7c61 (patch)
treeaa81790e47655447ac875f3e4695bd51cddf0f5e /Library/Homebrew/dev-cmd/audit.rb
parent17acb3a91cc399410ce6fa9b00280a7434fcd9a1 (diff)
downloadbrew-94769652e03e6333432bbc5578a74601f47e7c61.tar.bz2
simplify the regex and make a line max 80 char long
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 9f296ca66..c2e2e2f7a 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -1176,7 +1176,8 @@ class FormulaAuditor
problem "Use `assert_match` instead of `assert ...include?`"
end
- if line.include?('system "npm", "install"') && !line.include?("Language::Node") && formula.name !~ /^kibana(\d{2})?$/
+ if line.include?('system "npm", "install"') && !line.include?("Language::Node")\
+ && formula.name !~ /^kibana(\@\d+(\.\d+)?)?$/
problem "Use Language::Node for npm install args"
end