Skip to content

Commit 49bb773

Browse files
authoredDec 12, 2022
Allow apostrophe and interpunct in first word of item description (#155)
1 parent 32426e0 commit 49bb773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎rules/list-item.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function validateListItemPrefixCasing(prefix, file) {
250250
return false;
251251
}
252252

253-
if (!listItemPrefixCaseAllowList.has(caseOf(firstWord)) && !/\d/.test(firstWord) && !/^["'(]/.test(firstWord) && !identifierAllowList.has(firstWord)) {
253+
if (!listItemPrefixCaseAllowList.has(caseOf(firstWord.replace(/\W+/g, ''))) && !/\d/.test(firstWord) && !/^["'(]/.test(firstWord) && !identifierAllowList.has(firstWord)) {
254254
file.message('List item description must start with valid casing', prefix);
255255
return false;
256256
}

0 commit comments

Comments
 (0)
Please sign in to comment.