mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Fix bug in detailed error message for MD030/list-marker-space when no space present (fixes #57).
This commit is contained in:
parent
942f0600d2
commit
da529ac286
3 changed files with 52 additions and 1 deletions
|
@ -758,7 +758,7 @@ module.exports = [
|
|||
list.items.forEach(function forItem(item) {
|
||||
var match = /^[\s>]*\S+(\s+)/.exec(item.line);
|
||||
errors.addDetailIf(item.lineNumber,
|
||||
expectedSpaces, !match || match[1].length);
|
||||
expectedSpaces, (match ? match[1].length : 0));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue