Skip to content

Commit

Permalink
Handle 4-integer package versions in InsertConfigValues.ps1 (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-prosperi authored Jun 23, 2022
1 parent ae1df3a commit 3caa8c9
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 @@ $InsertedPkgs = (& "$PSScriptRoot\..\artifacts\VSInsertion.ps1" -SbomNotRequired
$icv=@()
foreach ($kvp in $InsertedPkgs.GetEnumerator()) {
$kvp.Value |% {
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 3caa8c9

Please sign in to comment.