diff --git a/lib/utils/isnt-design-doc.js b/lib/utils/isnt-design-doc.js index 73625c7..1ffd96f 100644 --- a/lib/utils/isnt-design-doc.js +++ b/lib/utils/isnt-design-doc.js @@ -1,4 +1,4 @@ // Checks for a design doc, so we can filters out docs that shouldn't return in *All methods module.exports = function isntDesignDoc (row) { - return row.id.match(/^_design/) === null + return /^_design/.test(row.id) !== true }