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