softwarereport: do not use regex to get version of choco (#4536)

This commit is contained in:
Aleksandr Chebotov
2021-11-18 17:52:27 +03:00
committed by GitHub
parent 5ab1cb345e
commit a8096c59ab

View File

@@ -111,9 +111,7 @@ function Get-NodeVersion {
}
function Get-ChocoVersion {
($(choco version) | Out-String) -match "v(?<version>\d+\.\d+\.\d+)" | Out-Null
$chocoVersion = $Matches.Version
return "Chocolatey $chocoVersion"
return "Chocolatey $(choco --version)"
}
function Get-VcpkgVersion {