From 670faa406ddad21a4a0745e6224b2b2f16025ec9 Mon Sep 17 00:00:00 2001 From: Markus Dobmann Date: Tue, 27 Jun 2017 08:48:42 +0200 Subject: [PATCH] refactor: replace String.match with RegExp.test (#156) --- lib/utils/isnt-design-doc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }