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})"
|
problem "Description shouldn't start with an indefinite article (#{$1})"
|
||||||
end
|
end
|
||||||
|
|
||||||
if desc =~ /^#{formula.name}\s/i
|
if desc.downcase.start_with? "#{formula.name} "
|
||||||
problem "Description shouldn't include the formula name"
|
problem "Description shouldn't include the formula name"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user