Add validation of onError callback object for rules.

This commit is contained in:
David Anson 2018-02-27 21:14:02 -08:00
parent 802c81f929
commit 7a752784f1
7 changed files with 107 additions and 12 deletions

View file

@ -14,8 +14,7 @@ module.exports = {
onError({
"lineNumber": blockquote.lineNumber,
"detail": "Blockquote spans " + lines + " line(s).",
"context": blockquote.line.substr(0, 7),
"range": null
"context": blockquote.line.substr(0, 7)
});
});
}