mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
prerelease matters
incoming 3.7.2 loses against existing 3.7.2 incoming 3.7.2-prerelease loses against existing 3.7.2 incoming 3.7.2-prerelease wins against existing 3.7.2-prerelease
This commit is contained in:
parent
9fad60beb3
commit
1d344dba69
@ -375,7 +375,8 @@ $tw.utils.checkVersions = function(versionStringA,versionStringB) {
|
||||
];
|
||||
return (diff[0] > 0) ||
|
||||
(diff[0] === 0 && diff[1] > 0) ||
|
||||
(diff[0] === 0 && diff[1] === 0 && diff[2] > 0);
|
||||
(diff[0] === 0 && diff[1] === 0 && diff[2] > 0) ||
|
||||
((diff[0] === 0 && diff[1] === 0 && diff[2] === 0) && !(versionA.prerelease && versionB.prerelease));
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user