ignore cache hash in version_compare
All checks were successful
Build / build (push) Successful in 1m33s
Build / build (pull_request) Successful in 1m23s

This commit is contained in:
Sainan 2025-04-30 01:05:46 +02:00
parent c8b6e9cfee
commit 1edbaefe03

View File

@ -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;