1
0
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:
Cristian Maglie 2016-08-05 17:57:28 +02:00
parent e0b2cd0ffe
commit 048a8a61d6

View File

@ -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) {