Skip to content

Commit e8e5ae2

Browse files
fix: use invariante culture constant (#1666)
The fix in #1633 didn't help us (seem I tested wrong when creating the initial fix) but with the constant it now did work and I think it's the more clean implementation instead of magic strings
1 parent 01c2f96 commit e8e5ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Actions/AL-Go-Helper.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ function MergeCustomObjectIntoOrderedDictionary {
513513
if ($srcElmType -eq "PSCustomObject") {
514514
# Array of objects are not checked for uniqueness
515515
$ht = [ordered]@{}
516-
$srcElm.PSObject.Properties | Sort-Object -Property Name -Culture "iv" | ForEach-Object {
516+
$srcElm.PSObject.Properties | Sort-Object -Property Name -Culture ([cultureinfo]::InvariantCulture) | ForEach-Object {
517517
$ht[$_.Name] = $_.Value
518518
}
519519
$dst."$prop" += @($ht)

0 commit comments

Comments
 (0)