Skip to content

Commit 048a8a6

Browse files
committed
VersionHelper now correctly strip snapshot info
1 parent e0b2cd0 commit 048a8a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public static Version valueOf(String ver) {
3838
return null;
3939
}
4040
try {
41+
if (ver.contains("-")) {
42+
// Strip snapshot info
43+
ver = ver.split("-")[0];
44+
}
4145
String[] verParts = ver.split("\\.");
4246
if (verParts.length < 3) {
4347
if (verParts.length == 2) {

0 commit comments

Comments
 (0)