aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-10-30 17:55:07 +0100
committerBaptiste Fontaine2015-10-30 17:56:55 +0100
commita2e2553bd82ca130931072353a167be5d9e87a20 (patch)
tree86a8c8b06f0793a5b7c2d76cb69f715e3fee4992 /Library/Homebrew
parent2ef51381c98d11936aa3db15912a71c2eef825e6 (diff)
downloadbrew-a2e2553bd82ca130931072353a167be5d9e87a20.tar.bz2
audit: flag any desc that starts with the formula name
The previous version didn’t work with descs like: "TheFormula serves a web page"
Diffstat (limited to 'Library/Homebrew')
-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 ece2ed19e..b33245647 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -393,7 +393,7 @@ class FormulaAuditor
problem "Description shouldn't start with an indefinite article (#{$1})"
end
- if desc =~ /^#{formula.name} is\s/i
+ if desc =~ /^#{formula.name}\s/i
problem "Description shouldn't include the formula name"
end
end