mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update eslint dependency to 1.5.1, update code for new rules.
This commit is contained in:
parent
bf07e3b845
commit
7af794bb21
5 changed files with 46 additions and 39 deletions
|
@ -41,7 +41,7 @@ function createTestForFile(file) {
|
|||
var results = {};
|
||||
lines.forEach(function forLine(line, lineNum) {
|
||||
var regex = /\{(MD\d+)(?::(\d+))?\}/g;
|
||||
var match;
|
||||
var match = null;
|
||||
while ((match = regex.exec(line))) {
|
||||
var rule = match[1];
|
||||
var errors = results[rule] || [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue