mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Allow question mark by default for MD026/no-trailing-punctuation (fixes #276).
This commit is contained in:
parent
3827842930
commit
6c1bc8ecb5
8 changed files with 30 additions and 16 deletions
|
@ -35,7 +35,11 @@ const linkRe = /\[(?:[^[\]]|\[[^\]]*\])*\](?:\(\S*\))?/g;
|
|||
module.exports.utf8Encoding = "utf8";
|
||||
|
||||
// All punctuation characters (normal and full-width)
|
||||
module.exports.allPunctuation = ".,;:!?。,;:!?";
|
||||
const allPunctuation = ".,;:!?。,;:!?";
|
||||
module.exports.allPunctuation = allPunctuation;
|
||||
|
||||
// All punctuation characters without question mark (normal and full-width)
|
||||
module.exports.allPunctuationNoQuestion = allPunctuation.replace(/[??]/gu, "");
|
||||
|
||||
// Returns true iff the input is a number
|
||||
module.exports.isNumber = function isNumber(obj) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue