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]