diff options
| author | Baptiste Fontaine | 2016-02-02 14:42:45 +0100 |
|---|---|---|
| committer | Baptiste Fontaine | 2016-02-03 14:04:31 +0100 |
| commit | cdd990f9d70b83956d931b4f48d6f9c3ba53023a (patch) | |
| tree | 4c887827cd99637e34402182679293c864a5ff3e /Library | |
| parent | 5b89c33cac47cb01f63c0a3593ea48d22087802f (diff) | |
| download | brew-cdd990f9d70b83956d931b4f48d6f9c3ba53023a.tar.bz2 | |
audit: use start_with? to check the name in the desc
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index cc007ba95..85c1c85a0 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 |
