node_modules/prettier/bin/prettier.cjs in immosquare-cleaner-0.1.38 vs node_modules/prettier/bin/prettier.cjs in immosquare-cleaner-0.1.39
- old
+ new
@@ -14,17 +14,13 @@
var pa = a.split(".");
var pb = b.split(".");
for (var i = 0; i < 3; i++) {
var na = Number(pa[i]);
var nb = Number(pb[i]);
- if (na > nb)
- return 1;
- if (nb > na)
- return -1;
- if (!isNaN(na) && isNaN(nb))
- return 1;
- if (isNaN(na) && !isNaN(nb))
- return -1;
+ if (na > nb) return 1;
+ if (nb > na) return -1;
+ if (!isNaN(na) && isNaN(nb)) return 1;
+ if (isNaN(na) && !isNaN(nb)) return -1;
}
return 0;
};
}
});