1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +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:
Felix Küppers 2014-12-23 13:53:58 +01:00
parent 9fad60beb3
commit 1d344dba69

View File

@ -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));
};
/*