From cdd990f9d70b83956d931b4f48d6f9c3ba53023a Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Tue, 2 Feb 2016 14:42:45 +0100 Subject: [PATCH] audit: use start_with? to check the name in the desc --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index cc007ba95a..85c1c85a0d 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -411,7 +411,7 @@ class FormulaAuditor problem "Description shouldn't start with an indefinite article (#{$1})" end - if desc =~ /^#{formula.name}\s/i + if desc.downcase.start_with? "#{formula.name} " problem "Description shouldn't include the formula name" end end