Release v1.0.0 🎉

This commit is contained in:
Christian Kellner
2018-01-20 20:23:27 +01:00
commit c6cffe029d
33 changed files with 2168 additions and 0 deletions

8
lib/utils.js Executable file
View File

@@ -0,0 +1,8 @@
function isOneOf (word, arr) {
const expression = String.raw`\b(${arr.join('|')})\b`;
const blacklist = new RegExp(expression, 'ig');
return blacklist.test(word)
}
module.exports = { isOneOf };