|
@@ -64,8 +64,10 @@ function checkOSVersionLow(itemId2AttrInfo, osVersion) {
|
|
|
}
|
|
|
|
|
|
function compareVersions(version1, version2) {
|
|
|
- const v1 = version1.split('.').map(Number);
|
|
|
- const v2 = version2.split('.').map(Number);
|
|
|
+ const segments1 = version1.split(' ');
|
|
|
+ const segments2 = version2.split(' ');
|
|
|
+ const v1 = segments1[1].split('.').map(Number);
|
|
|
+ const v2 = segments2[1].split('.').map(Number);
|
|
|
|
|
|
for (let i = 0; i < Math.max(v1.length, v2.length); i++) {
|
|
|
const num1 = i < v1.length ? v1[i] : 0;
|