Skip to content

Commit

Permalink
Handle 4-integer package versions in InsertConfigValues.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed May 12, 2021
1 parent 4e2e5d5 commit 679db2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines/variables/InsertConfigValues.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $BinPath = [System.IO.Path]::GetFullPath("$PSScriptRoot\..\..\bin\Packages\$env:
$icv=@()
if (Test-Path "$BinPath") {
Get-ChildItem -Path "$BinPath\*.nupkg" -rec |% {
if ($_.Name -match "^(.*)\.(\d+\.\d+\.\d+(?:-.*?)?)(?:\.symbols)?\.nupkg$") {
if ($_.Name -match "^(.*?)\.(\d+\.\d+\.\d+(?:\.\d+)?(?:-.*?)?)(?:\.symbols)?\.nupkg$") {
$id = $Matches[1]
$version = $Matches[2]
$icv += "$id=$version"
Expand Down

0 comments on commit 679db2a

Please sign in to comment.