Fix version splitting

This commit is contained in:
Richard Kuhnt
2017-05-24 20:30:47 +02:00
parent 9282751914
commit ff76d131ea
+1 -1
View File
@@ -13,7 +13,7 @@ function versions($app, $global) {
}
function version($ver) {
$ver.split('.-') | % {
$ver -split '[\.-]' | % {
$num = $_ -as [int]
if($num) { $num } else { $_ }
}