Fix SemVer.ToString to handle v0 case (#2863)
Since we are treating v0 versions as prerelease we need to make sure we don't accidently start to add the bogus prerelease label in cases where we call ToString() on the version. Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
This commit is contained in:
parent
4aacb5f59f
commit
34cb6c76ae
@ -136,7 +136,7 @@ class AzureEngSemanticVersion : IComparable {
|
||||
{
|
||||
$versionString = "{0}.{1}.{2}" -F $this.Major, $this.Minor, $this.Patch
|
||||
|
||||
if ($this.IsPrerelease)
|
||||
if ($this.IsPrerelease -and $this.PrereleaseLabel -ne "zzz")
|
||||
{
|
||||
$versionString += $this.PrereleaseLabelSeparator + $this.PrereleaseLabel + `
|
||||
$this.PrereleaseNumberSeparator + $this.PrereleaseNumber
|
||||
|
||||
Loading…
Reference in New Issue
Block a user