diff --git a/lib/gitCommitConvention.js b/lib/gitCommitConvention.js index 878ac2f..3a17508 100644 --- a/lib/gitCommitConvention.js +++ b/lib/gitCommitConvention.js @@ -126,7 +126,7 @@ module.exports = function (convention, commitAnchor = 'HEAD') { return await Git.getLastTag({ commitAnchor: commitRef, matchPattern: convention.releaseTagGlobPattern, - excludePattern: '*-*', // exclude pre-release versions + excludePattern: `${convention.releaseTagGlobPattern}-*`, // exclude pre-release versions }) } diff --git a/package.json b/package.json index 711e0ac..649a7e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "git-conventional-commits", - "version": "2.6.5", + "version": "2.6.6", "description": "git conventional commits util", "licence": "GPLv3", "main": "cli.js",