From 4c424794c4404575f2ad39b2e99a2cd66cc211dd Mon Sep 17 00:00:00 2001 From: amd64fox Date: Thu, 4 Aug 2022 20:14:13 +0300 Subject: [PATCH] Array sort error --- Install.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index b20f0cb..017694a 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -1049,11 +1049,11 @@ function Helper($paramname) { "HtmlLicMin" { # licenses.html minification $html_lic_min = @{ - HtmlLicMin1 = '\r?\n(?!\(1|\d)', '' - HtmlLicMin2 = '(?m)(^\s*\r?\n)', '' + HtmlLicMin1 = '
  • zlib<\/a><\/li>\n(.|\n)*<\/p>(<\/div>)', '$2' + HtmlLicMin2 = ' ', '' HtmlLicMin3 = ' ', '' - HtmlLicMin4 = ' ', '' - HtmlLicMin5 = '
  • zlib<\/a><\/li>\n(.|\n)*<\/p>(<\/div>)', '' + HtmlLicMin4 = '(?m)(^\s*\r?\n)', '' + HtmlLicMin5 = '\r?\n(?!\(1|\d)', '' } $n = ($lang).NoVariable3 $contents = $html_lic_min @@ -1197,7 +1197,7 @@ function Helper($paramname) { } } - $contents.Keys | ForEach-Object { + $contents.Keys | Sort-Object | ForEach-Object { if ($paramdata -match $contents.$PSItem[0]) { $paramdata = $paramdata -replace $contents.$PSItem[0], $contents.$PSItem[1]