Merge pull request #1535 from PowerShell/RaghuS-PackagingBranch

Fix for handling alphanumeric characters in package build field
This commit is contained in:
Raghu Shantha [MSFT] authored and GitHub committed 2016-07-26 21:52:27 -07:00
commit 0814942d88
1 file changed
+2 -1
+2 -1
View File
@@ -1560,7 +1560,8 @@ function Get-PackageVersionAsMajorMinorBuildRevision
elseif (1 -lt $packageVersionTokens.Count)
{
# We have all the four fields
$packageVersion = $packageVersion + '.' + $packageVersionTokens[1]
$packageBuildTokens = ([regex]::Matches($packageVersionTokens[1], "\d+"))[0].value
$packageVersion = $packageVersion + '.' + $packageBuildTokens[0]
}
return $packageVersion