Skip to content

Commit 7f9610c

Browse files
Add files via upload
1 parent 2a8df80 commit 7f9610c

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

functions/functions.psm1

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,52 +2073,52 @@ function ConvertFrom-WinFormsXML {
20732073
$attrib.Value = [math]::round(($attrib.Value / 1) * $ctscale)
20742074
}
20752075
if ($attribName -eq 'Size'){
2076-
$n = $attrib.Value.split(',')
2076+
$n = $attrib.Value.split($listsep)
20772077
$n[0] = [math]::round(($n[0]/1) * $ctscale)
20782078
$n[1] = [math]::round(($n[1]/1) * $ctscale)
2079-
if ("$($n[0]),$($n[1])" -ne ",") {
2080-
$attrib.Value = "$($n[0]),$($n[1])"
2079+
if ("$($n[0]),$($n[1])" -ne $listsep) {
2080+
$attrib.Value = "$($n[0])$($listsep)$($n[1])"
20812081
}
20822082
}
20832083
if ($attribName -eq 'Location'){
2084-
$n = $attrib.Value.split(',')
2084+
$n = $attrib.Value.split($listsep)
20852085
$n[0] = [math]::round(($n[0]/1) * $ctscale)
20862086
$n[1] = [math]::round(($n[1]/1) * $ctscale)
2087-
if ("$($n[0]),$($n[1])" -ne ",") {
2088-
$attrib.Value = "$($n[0]),$($n[1])"
2087+
if ("$($n[0]),$($n[1])" -ne $listsep) {
2088+
$attrib.Value = "$($n[0])$($listsep)$($n[1])"
20892089
}
20902090
}
20912091
if ($attribName -eq 'MaximumSize'){
2092-
$n = $attrib.Value.split(',')
2092+
$n = $attrib.Value.split($listsep)
20932093
$n[0] = [math]::round(($n[0]/1) * $ctscale)
20942094
$n[1] = [math]::round(($n[1]/1) * $ctscale)
2095-
if ("$($n[0]),$($n[1])" -ne ",") {
2096-
$attrib.Value = "$($n[0]),$($n[1])"
2095+
if ("$($n[0]),$($n[1])" -ne $listsep) {
2096+
$attrib.Value = "$($n[0])$($listsep)$($n[1])"
20972097
}
20982098
}
20992099
if ($attribName -eq 'MinimumSize'){
2100-
$n = $attrib.Value.split(',')
2100+
$n = $attrib.Value.split($listsep)
21012101
$n[0] = [math]::round(($n[0]/1) * $ctscale)
21022102
$n[1] = [math]::round(($n[1]/1) * $ctscale)
2103-
if ("$($n[0]),$($n[1])" -ne ",") {
2104-
$attrib.Value = "$($n[0]),$($n[1])"
2103+
if ("$($n[0]),$($n[1])" -ne $listsep) {
2104+
$attrib.Value = "$($n[0])$($listsep)$($n[1])"
21052105
}
21062106
}
21072107
if ($attribName -eq 'ImageScalingSize'){
2108-
$n = $attrib.Value.split(',')
2108+
$n = $attrib.Value.split($listsep)
21092109
$n[0] = [math]::round(($n[0]/1) * $ctscale)
21102110
$n[1] = [math]::round(($n[1]/1) * $ctscale)
2111-
if ("$($n[0]),$($n[1])" -ne ",") {
2112-
$attrib.Value = "$($n[0]),$($n[1])"
2111+
if ("$($n[0]),$($n[1])" -ne $listsep) {
2112+
$attrib.Value = "$($n[0])$($listsep)$($n[1])"
21132113
}
21142114
}
21152115

21162116
if ($attribName -eq 'TileSize'){
2117-
$n = $attrib.Value.split(',')
2117+
$n = $attrib.Value.split($listsep)
21182118
$n[0] = [math]::round(($n[0]/1) * $ctscale)
21192119
$n[1] = [math]::round(($n[1]/1) * $ctscale)
2120-
if ("$($n[0]),$($n[1])" -ne ",") {
2121-
$attrib.Value = "$($n[0]),$($n[1])"
2120+
if ("$($n[0]),$($n[1])" -ne $listsep) {
2121+
$attrib.Value = "$($n[0])$($listsep)$($n[1])"
21222122
}
21232123
}
21242124

@@ -4369,7 +4369,7 @@ function Get-PowerShellDesignerVersion {
43694369
.EXAMPLE
43704370
$PSDVersion = Get-PowerShellDesignerVersion
43714371
#>
4372-
return '2.6.9'
4372+
return '2.7.1'
43734373
}
43744374

43754375
function Get-PowerShellVersion {
@@ -9071,6 +9071,7 @@ public class Window
90719071
}
90729072
"@
90739073
$global:ctscale = 1
9074+
$global:listsep = [cultureinfo]::CurrentCulture.TextInfo.ListSeparator
90749075
}
90759076

90769077
function Set-WebServerResponse {

0 commit comments

Comments
 (0)