We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4582bf commit 64ef41dCopy full SHA for 64ef41d
1 file changed
src/check-outstanding-tasks.js
@@ -1,6 +1,9 @@
1
const marked = require('marked');
2
3
module.exports = function (body) {
4
+ if (body === null) {
5
+ return false;
6
+ }
7
let tokens = marked.lexer(body, { gfm: true });
8
let listItems = tokens.filter(token => token.type === 'list_item_start');
9
0 commit comments