Versions: replacing ending "b" with .1

This commit is contained in:
Federico Fissore 2015-03-26 17:26:29 +01:00
parent 9757546bc8
commit c21b8b7445
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ public class VersionComparator implements Comparator<String> {
}
private Version valueOf(String ver) {
if (ver.endsWith("b")) {
ver = ver.substring(0, ver.lastIndexOf("b")) + ".1";
}
String[] verParts = ver.split("\\.");
if (verParts.length < 3) {
if (verParts.length == 2) {