diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 46e9a4500..3f5badf54 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -220,7 +220,7 @@ function Get-SbtVersion { function Get-PHPVersions { $result = Get-CommandResult "apt list --installed" -Multiline return $result.Output | Where-Object { $_ -match "^php\d+\.\d+/"} | ForEach-Object { - $_ -match "now (\d+:)?(?\d+\.\d+\.\d+)-" | Out-Null + $_ -match "now (\d+:)?(?\d+\.\d+\.\d+)" | Out-Null $Matches.version } }