We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sindresorhus
Learn more about funding links in repositories.
Report abuse
1 parent 32426e0 commit 49bb773Copy full SHA for 49bb773
rules/list-item.js
@@ -250,7 +250,7 @@ function validateListItemPrefixCasing(prefix, file) {
250
return false;
251
}
252
253
- if (!listItemPrefixCaseAllowList.has(caseOf(firstWord)) && !/\d/.test(firstWord) && !/^["“'(]/.test(firstWord) && !identifierAllowList.has(firstWord)) {
+ if (!listItemPrefixCaseAllowList.has(caseOf(firstWord.replace(/\W+/g, ''))) && !/\d/.test(firstWord) && !/^["“'(]/.test(firstWord) && !identifierAllowList.has(firstWord)) {
254
file.message('List item description must start with valid casing', prefix);
255
256
0 commit comments