mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-04 08:41:36 +00:00
Fix version splitting
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ function versions($app, $global) {
|
||||
}
|
||||
|
||||
function version($ver) {
|
||||
$ver.split('.-') | % {
|
||||
$ver -split '[\.-]' | % {
|
||||
$num = $_ -as [int]
|
||||
if($num) { $num } else { $_ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user