Skip to content

Commit

Permalink
Fix HeadingPunctuation
Browse files Browse the repository at this point in the history
This should only apply to terminating punctuation.
  • Loading branch information
jdkato committed Apr 29, 2024
1 parent 7db88c4 commit c798f13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Microsoft/HeadingPunctuation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ action:
- trim_right
- ".?!"
tokens:
- '[a-z][.?!](?:\s|$)'
- "[a-z][.?!]$"
3 changes: 3 additions & 0 deletions fixtures/Headings/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
## Find the thief: Introduction

# 8. Do step eight

# Another heading something vs. cool

0 comments on commit c798f13

Please sign in to comment.