Skip to content

Commit 29ce1c3

Browse files
Alexey-AyupovAlexey Ayupov
andauthored
[Ubuntu] fix VersionPattern for Clang v15 (#8575)
Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
1 parent aaa37df commit 29ce1c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Get-ClangToolVersions {
3030
[Parameter(Mandatory = $true)]
3131
[string] $ToolName,
3232
[string] $VersionLineMatcher = "${ToolName} version",
33-
[string] $VersionPattern = "\d+\.\d+\.\d+)-"
33+
[string] $VersionPattern = "\d+\.\d+\.\d+)"
3434
)
3535

3636
$result = Get-CommandResult "apt list --installed" -Multiline
@@ -355,4 +355,4 @@ function Get-SystemdVersion {
355355
$matches = [regex]::Matches((systemctl --version | head -n 1), "\((.*?)\)")
356356
$result = foreach ($match in $matches) {$match.Groups[1].Value}
357357
return $result
358-
}
358+
}

0 commit comments

Comments
 (0)