Skip to content

Commit

Permalink
Allow apostrophe and interpunct in first word of item description (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven2358 committed Dec 12, 2022
1 parent 32426e0 commit 49bb773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function validateListItemPrefixCasing(prefix, file) {
return false;
}

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)) {
file.message('List item description must start with valid casing', prefix);
return false;
}
Expand Down

0 comments on commit 49bb773

Please sign in to comment.