Skip to content

Commit

Permalink
test: fix no-unsafe-negation violation
Browse files Browse the repository at this point in the history
  • Loading branch information
nhodges committed Sep 19, 2017
1 parent f45ddad commit 8059f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @commitlint/core/src/library/ensure-contains.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8059f71

Please sign in to comment.