mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
fix version comparison code
This commit is contained in:
parent
dbc42a7b51
commit
bef1fe5453
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ compareVersions = function (v1, v2) { // return true if v2 is newer than v1
|
|||
// go through each segment of v2 and stop if we find one that's higher
|
||||
// than the equivalent segment of v1; else return false
|
||||
return v2Array.some( function (value, index) {
|
||||
return value > v1Array[index];
|
||||
return parseInt(value) > parseInt(v1Array[index]);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue