mirror of https://github.com/noisymime/Arduino.git
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…
Reference in New Issue