mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Versions: replacing ending "b" with .1
This commit is contained in:
parent
9757546bc8
commit
c21b8b7445
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user