Skip to content

Commit a9f62a4

Browse files
committed
style: fix prettier errors
1 parent 10963bb commit a9f62a4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/analyze-commit.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ module.exports = (releaseRules, commit) => {
2121
// If the rule is not `revert` or the commit is not a revert
2222
(!revert || commit.revert) &&
2323
// Otherwise match the regular rules
24-
isMatchWith(
25-
commit,
26-
rule,
27-
(obj, src) =>
28-
/^\/.*\/$/.test(src) || isRegExp(src) ? new RegExp(/^\/(.*)\/$/.exec(src)[1]).test(obj) : undefined
24+
isMatchWith(commit, rule, (obj, src) =>
25+
/^\/.*\/$/.test(src) || isRegExp(src) ? new RegExp(/^\/(.*)\/$/.exec(src)[1]).test(obj) : undefined
2926
)
3027
)
3128
.every(match => {

0 commit comments

Comments
 (0)