mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-04-14 03:04:46 +00:00
Fix "full tag" match pattern
This commit is contained in:
parent
d061f3fb0e
commit
ed818a75eb
3 changed files with 17 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -1139,7 +1139,7 @@ async function run() {
|
|||
branch = (await cmd('git', 'rev-parse', 'HEAD')).trim();
|
||||
}
|
||||
|
||||
const versionPattern = shortTags ? '*[0-9.]' : '[0-9]+\\.[0-9]+\\.[0-9]+'
|
||||
const versionPattern = shortTags ? '*[0-9.]' : '*[0-9].*[0-9].*[0-9]'
|
||||
const releasePattern = namespace === '' ? `${tagPrefix}${versionPattern}` : `${tagPrefix}${versionPattern}-${namespace}`;
|
||||
let major = 0, minor = 0, patch = 0, increment = 0;
|
||||
let changed = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue