From 679db2a7343675e138cb42469f227fe335668ed5 Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Wed, 12 May 2021 07:55:17 -0600 Subject: [PATCH] Handle 4-integer package versions in InsertConfigValues.ps1 --- azure-pipelines/variables/InsertConfigValues.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/variables/InsertConfigValues.ps1 b/azure-pipelines/variables/InsertConfigValues.ps1 index 1455a5b7..eaf00327 100644 --- a/azure-pipelines/variables/InsertConfigValues.ps1 +++ b/azure-pipelines/variables/InsertConfigValues.ps1 @@ -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"