mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-22 02:50:18 +10:00
Array sort error
This commit is contained in:
10
Install.ps1
10
Install.ps1
@@ -1049,11 +1049,11 @@ function Helper($paramname) {
|
|||||||
"HtmlLicMin" {
|
"HtmlLicMin" {
|
||||||
# licenses.html minification
|
# licenses.html minification
|
||||||
$html_lic_min = @{
|
$html_lic_min = @{
|
||||||
HtmlLicMin1 = '\r?\n(?!\(1|\d)', ''
|
HtmlLicMin1 = '<li><a href="#6eef7">zlib<\/a><\/li>\n(.|\n)*<\/p><!-- END CONTAINER DEPS LICENSES -->(<\/div>)', '$2'
|
||||||
HtmlLicMin2 = '(?m)(^\s*\r?\n)', ''
|
HtmlLicMin2 = ' ', ''
|
||||||
HtmlLicMin3 = ' ', ''
|
HtmlLicMin3 = ' ', ''
|
||||||
HtmlLicMin4 = ' ', ''
|
HtmlLicMin4 = '(?m)(^\s*\r?\n)', ''
|
||||||
HtmlLicMin5 = '<li><a href="#6eef7">zlib<\/a><\/li>\n(.|\n)*<\/p><!-- END CONTAINER DEPS LICENSES -->(<\/div>)', ''
|
HtmlLicMin5 = '\r?\n(?!\(1|\d)', ''
|
||||||
}
|
}
|
||||||
$n = ($lang).NoVariable3
|
$n = ($lang).NoVariable3
|
||||||
$contents = $html_lic_min
|
$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]) {
|
if ($paramdata -match $contents.$PSItem[0]) {
|
||||||
$paramdata = $paramdata -replace $contents.$PSItem[0], $contents.$PSItem[1]
|
$paramdata = $paramdata -replace $contents.$PSItem[0], $contents.$PSItem[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user