mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 13:08:17 +00:00
WIP
This commit is contained in:
parent
4f2d43e682
commit
28e15333e0
2 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ export class DefaultTagFormatter implements TagFormatter {
|
|||
const namespace = regexEscape(this.namespace);
|
||||
|
||||
if (!!this.namespace) {
|
||||
return new RegExp(`^${tagPrefix}[0-9]+\.[0-9]+\.[0-9]+${namespaceSeperator}${namespace}$`).test(tag);
|
||||
new RegExp(`^${tagPrefix}[0-9]+\.[0-9]+\.[0-9]+${namespaceSeperator}${namespace}$`).test(tag);
|
||||
}
|
||||
|
||||
return new RegExp(`^${tagPrefix}[0-9]+\.[0-9]+\.[0-9]+$`).test(tag);
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export class DefaultLastReleaseResolver implements LastReleaseResolver {
|
|||
)).trim();
|
||||
|
||||
currentTag = tagFormatter.IsValid(currentTag) ? currentTag : '';
|
||||
core.info("VAGO check whether current tag is valid: " + currentTag);
|
||||
const isTagged = currentTag !== '';
|
||||
|
||||
const [currentMajor, currentMinor, currentPatch] = !!currentTag ? tagFormatter.Parse(currentTag) : [null, null, null];
|
||||
|
|
|
|||
Loading…
Reference in a new issue