mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Versions: replacing ending "b" with .1
This commit is contained in:
@ -72,6 +72,9 @@ public class VersionComparator implements Comparator<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Version valueOf(String ver) {
|
private Version valueOf(String ver) {
|
||||||
|
if (ver.endsWith("b")) {
|
||||||
|
ver = ver.substring(0, ver.lastIndexOf("b")) + ".1";
|
||||||
|
}
|
||||||
String[] verParts = ver.split("\\.");
|
String[] verParts = ver.split("\\.");
|
||||||
if (verParts.length < 3) {
|
if (verParts.length < 3) {
|
||||||
if (verParts.length == 2) {
|
if (verParts.length == 2) {
|
||||||
|
Reference in New Issue
Block a user