mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +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;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
if (ver.contains("-")) {
|
||||||
|
// Strip snapshot info
|
||||||
|
ver = ver.split("-")[0];
|
||||||
|
}
|
||||||
String[] verParts = ver.split("\\.");
|
String[] verParts = ver.split("\\.");
|
||||||
if (verParts.length < 3) {
|
if (verParts.length < 3) {
|
||||||
if (verParts.length == 2) {
|
if (verParts.length == 2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user