fix bug doing version comparison

This commit is contained in:
Grahame Grieve 2022-12-09 20:09:01 +11:00
parent f8a0e82785
commit 474f84c903
1 changed files with 6 additions and 1 deletions

View File

@ -311,7 +311,12 @@ public class VersionUtilities {
return true;
}
if (pc!=null) {
return compareVersionPart(pt, pc);
if (pt.contains("-") && !pc.contains("-")) {
pt = pt.substring(0, pt.indexOf("-"));
return pt.compareTo(pc) >= 0;
} else {
return compareVersionPart(pt, pc);
}
}
}
return false;