mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-17 11:54:33 +01:00
VersionHelper now correctly strip snapshot info
This commit is contained in:
parent
e0b2cd0ffe
commit
048a8a61d6
@ -38,6 +38,10 @@ public class VersionHelper {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
if (ver.contains("-")) {
|
||||
// Strip snapshot info
|
||||
ver = ver.split("-")[0];
|
||||
}
|
||||
String[] verParts = ver.split("\\.");
|
||||
if (verParts.length < 3) {
|
||||
if (verParts.length == 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user