fix: compatibility with echoes of duviri #1928

Merged
Sainan merged 2 commits from echoes-fix into main 2025-04-30 13:28:25 -07:00
Showing only changes of commit 1edbaefe03 - Show all commits

View File

@ -1234,8 +1234,14 @@ export const isArchwingMission = (node: IRegion): boolean => {
};
export const version_compare = (a: string, b: string): number => {
const a_digits = a.split(".").map(x => parseInt(x));
const b_digits = b.split(".").map(x => parseInt(x));
const a_digits = a
.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) {
if (a_digits[i] != b_digits[i]) {
return a_digits[i] > b_digits[i] ? 1 : -1;