aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2016-02-02 14:42:45 +0100
committerBaptiste Fontaine2016-02-03 14:04:31 +0100
commitcdd990f9d70b83956d931b4f48d6f9c3ba53023a (patch)
tree4c887827cd99637e34402182679293c864a5ff3e /Library
parent5b89c33cac47cb01f63c0a3593ea48d22087802f (diff)
downloadbrew-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.rb2
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