From a95e0fba826ec91a3a013cf8f60f0ecc54bbc32c Mon Sep 17 00:00:00 2001 From: Joseph Kato Date: Fri, 12 Apr 2019 14:33:02 -0700 Subject: [PATCH] Fix `\s` not matching eol --- Microsoft/HeadingPunctuation.yml | 2 +- features/rules.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Microsoft/HeadingPunctuation.yml b/Microsoft/HeadingPunctuation.yml index 2804bc1..3c86cb7 100644 --- a/Microsoft/HeadingPunctuation.yml +++ b/Microsoft/HeadingPunctuation.yml @@ -5,4 +5,4 @@ nonword: true level: warning scope: heading tokens: - - '[a-z0-9][.?!]\s' + - '[a-z0-9][.?!](?:\s|$)' diff --git a/features/rules.feature b/features/rules.feature index 77d080f..6904a62 100644 --- a/features/rules.feature +++ b/features/rules.feature @@ -131,7 +131,7 @@ Feature: Rules """ test.md:1:7:Microsoft.HeadingColons:Capitalize ': m'." test.md:5:3:Microsoft.Headings:'This is a Heading' should use sentence-style capitalization. - test.md:7:11:Microsoft.HeadingPunctuation:Don’t use end punctuation in headings. + test.md:7:13:Microsoft.HeadingPunctuation:Don’t use end punctuation in headings. test.md:9:15:Microsoft.HeadingAcronyms:Avoid using acronyms in a title or heading. """