Skip to content

Commit 3caa8c9

Browse files
Handle 4-integer package versions in InsertConfigValues.ps1 (#145)
This is sourced from microsoft/vs-streamjsonrpc@679db2a
1 parent ae1df3a commit 3caa8c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-pipelines/variables/InsertConfigValues.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $InsertedPkgs = (& "$PSScriptRoot\..\artifacts\VSInsertion.ps1" -SbomNotRequired
33
$icv=@()
44
foreach ($kvp in $InsertedPkgs.GetEnumerator()) {
55
$kvp.Value |% {
6-
if ($_.Name -match "^(.*)\.(\d+\.\d+\.\d+(?:-.*?)?)(?:\.symbols)?\.nupkg$") {
6+
if ($_.Name -match "^(.*?)\.(\d+\.\d+\.\d+(?:\.\d+)?(?:-.*?)?)(?:\.symbols)?\.nupkg$") {
77
$id = $Matches[1]
88
$version = $Matches[2]
99
$icv += "$id=$version"

0 commit comments

Comments
 (0)