ignore cache hash in version_compare
This commit is contained in:
parent
c8b6e9cfee
commit
1edbaefe03
@ -1234,8 +1234,14 @@ export const isArchwingMission = (node: IRegion): boolean => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const version_compare = (a: string, b: string): number => {
|
export const version_compare = (a: string, b: string): number => {
|
||||||
const a_digits = a.split(".").map(x => parseInt(x));
|
const a_digits = a
|
||||||
const b_digits = b.split(".").map(x => parseInt(x));
|
.split("/")[0]
|
||||||
|
.split(".")
|
||||||
|
.map(x => parseInt(x));
|
||||||
|
const b_digits = b
|
||||||
|
.split("/")[0]
|
||||||
|
.split(".")
|
||||||
|
.map(x => parseInt(x));
|
||||||
for (let i = 0; i != a_digits.length; ++i) {
|
for (let i = 0; i != a_digits.length; ++i) {
|
||||||
if (a_digits[i] != b_digits[i]) {
|
if (a_digits[i] != b_digits[i]) {
|
||||||
return a_digits[i] > b_digits[i] ? 1 : -1;
|
return a_digits[i] > b_digits[i] ? 1 : -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user