Skip to content

Commit c21b8b7

Browse files
author
Federico Fissore
committed
Versions: replacing ending "b" with .1
1 parent 9757546 commit c21b8b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arduino-core/src/cc/arduino/contributions/VersionComparator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public boolean greaterThan(String a, String b) {
7272
}
7373

7474
private Version valueOf(String ver) {
75+
if (ver.endsWith("b")) {
76+
ver = ver.substring(0, ver.lastIndexOf("b")) + ".1";
77+
}
7578
String[] verParts = ver.split("\\.");
7679
if (verParts.length < 3) {
7780
if (verParts.length == 2) {

0 commit comments

Comments
 (0)