Skip to content

Commit

Permalink
Allow apostrophe in item description (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
janpeuker committed Jan 30, 2023
1 parent 2325cad commit f7ae121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -238,7 +238,7 @@ function validateListItemSpecialCases(description, descriptionText) {
}

function tokenizeWords(text) {
return text.split(/[- ;./]/).filter(Boolean);
return text.split(/[- ;./']/).filter(Boolean);
}

function validateListItemPrefixCasing(prefix, file) {
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/list-item/0.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ All list-items in this document should be linted as **valid**.
- [foo](https://foo.com) - Valid sub-item.
- [foo](https://foo.com) - Valid sub-item.
- [foo](https://foo.com) - Valid sub-sub-item!!!!!
- [foo](https://foo.com) - GitHub's descriptions can also be valid.

## Tutorials

Expand Down

0 comments on commit f7ae121

Please sign in to comment.