Skip to content

Commit

Permalink
refactor: replace String.match with RegExp.test (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
flootr authored and gr2m committed Jun 28, 2017
1 parent d0bc7c8 commit 670faa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/isnt-design-doc.js
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 670faa4

Please sign in to comment.