We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120182d commit be4bb55Copy full SHA for be4bb55
UnitsNet/Scripts/GenerateUnits.ps1
@@ -211,7 +211,7 @@ function Add-PrefixUnits {
211
Localization=$unit.Localization | % {
212
$abbrev = $prefixAbbreviation + $_.Abbreviations[0]
213
if ($_.AbbreviationsWithPrefixes) {
214
- $abbrev = $_.AbbreviationsWithPrefixes[$prefixIndex++]
+ $abbrev = $_.AbbreviationsWithPrefixes[$prefixIndex]
215
}
216
217
New-Object PsObject -Property @{
@@ -222,6 +222,7 @@ function Add-PrefixUnits {
222
223
# Append prefix unit
224
$prefixUnits += $prefixUnit
225
+ $prefixIndex++;
226
} # foreach prefixes
227
} # foreach units
228
0 commit comments