audit: use start_with? to check the name in the desc
This commit is contained in:
parent
5b89c33cac
commit
cdd990f9d7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user