From 8059f711504b374adae2f790258cd0cd2d7a8d94 Mon Sep 17 00:00:00 2001 From: Nuri Hodges Date: Tue, 19 Sep 2017 16:27:36 -0700 Subject: [PATCH] test: fix no-unsafe-negation violation --- @commitlint/core/src/library/ensure-contains.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@commitlint/core/src/library/ensure-contains.js b/@commitlint/core/src/library/ensure-contains.js index 331f877ef3..55b7a0e279 100644 --- a/@commitlint/core/src/library/ensure-contains.js +++ b/@commitlint/core/src/library/ensure-contains.js @@ -2,7 +2,7 @@ export default (value, regex) => { if (value === undefined) { return false; } - if (!regex instanceof RegExp) { + if (!(regex instanceof RegExp)) { return false; } return regex.test(value);