From dcb58dee7ac5640f41ae3fa851458f8afbe2b45c Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 9 Aug 2021 08:59:59 +0000 Subject: [PATCH] fix: escape tilde operator (#3868) Prevents markdown to interpret it as 'strike down' style when 2 or more tilde operators appear --- images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 index c6cffc2a..c5abd8ed 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -353,6 +353,8 @@ function Get-AptPackages { if ($Null -eq $version) { $version = $(dpkg-query -W -f '${Version}' "$pkg*") } + + $version = $version -replace '~','\~' $output += [PSCustomObject] @{ Name = $pkg