Skip to content
Snippets Groups Projects
Commit eaa374d0 authored by codedust's avatar codedust
Browse files

Fix version regex for ffrn

parent bec04b1c
No related branches found
No related tags found
No related merge requests found
......@@ -281,7 +281,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]+(\+[a-z0-9]+)?(~[a-z0-9]+)?)[.-]/.exec(name);
var m = /-([0-9]+.[0-9]+.[0-9]+([+-][0-9]+)?(~[a-z0-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