Skip to content

Commit a95e0fb

Browse files
committed
Fix \s not matching eol
1 parent 191143d commit a95e0fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Microsoft/HeadingPunctuation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nonword: true
55
level: warning
66
scope: heading
77
tokens:
8-
- '[a-z0-9][.?!]\s'
8+
- '[a-z0-9][.?!](?:\s|$)'

features/rules.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Feature: Rules
131131
"""
132132
test.md:1:7:Microsoft.HeadingColons:Capitalize ': m'."
133133
test.md:5:3:Microsoft.Headings:'This is a Heading' should use sentence-style capitalization.
134-
test.md:7:11:Microsoft.HeadingPunctuation:Don’t use end punctuation in headings.
134+
test.md:7:13:Microsoft.HeadingPunctuation:Don’t use end punctuation in headings.
135135
test.md:9:15:Microsoft.HeadingAcronyms:Avoid using acronyms in a title or heading.
136136
"""
137137

0 commit comments

Comments
 (0)