Skip to content
Snippets Groups Projects
Commit be1a8766 authored by Moritz Warning's avatar Moritz Warning
Browse files

fix version detection edge case

parent a8a4615c
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ var firmwarewizard = function() {
function findVersion(name) {
// version with optional date in it (e.g. 0.8.0~20160502)
var m = /-([0-9]+.[0-9]+.[0-9]+(~[0-9]+)?)-/.exec(name);
var m = /-([0-9]+.[0-9]+.[0-9]+(~[0-9]+)?)[.-]/.exec(name);
return m ? m[1] : '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment