diff --git a/lib/analyze-commit.js b/lib/analyze-commit.js index 35a4e7d1..17220b99 100644 --- a/lib/analyze-commit.js +++ b/lib/analyze-commit.js @@ -1,5 +1,4 @@ import { isMatchWith, isString } from "lodash-es"; -import micromatch from "micromatch"; import debugFactory from "debug"; import RELEASE_TYPES from "./default-release-types.js"; import compareReleaseTypes from "./compare-release-types.js"; @@ -23,9 +22,7 @@ export default (releaseRules, commit) => { // If the rule is not `revert` or the commit is not a revert (!revert || commit.revert) && // Otherwise match the regular rules - isMatchWith(commit, rule, (object, src) => - isString(src) && isString(object) ? micromatch.isMatch(object, src) : undefined - ) + isMatchWith(commit, rule, (object, src) => new RegExp(src).test(object)) ) .every((match) => { if (compareReleaseTypes(releaseType, match.release)) {