Skip to content

Commit 72226a8

Browse files
blckmnmikeller
authored andcommitted
Auto merged - #2615 at Fri, 01 Oct 2021 21:17:07 GMT
Fixed parsing of firmware versions to support multi-digit versions.
1 parent e459150 commit 72226a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/tabs/firmware_flasher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ TABS.firmware_flasher.initialize = function (callback) {
417417
function populateBuilds(builds, target, manufacturerId, duplicateName, targetVersions, callback) {
418418
if (targetVersions) {
419419
targetVersions.forEach(function(descriptor) {
420-
const versionRegex = /^(\d.\d.\d(?:-\w+)?)(?: #(\d+))?$/;
420+
const versionRegex = /^(\d+.\d+.\d+(?:-\w+)?)(?: #(\d+))?$/;
421421
const versionParts = descriptor.version.match(versionRegex);
422422
if (!versionParts) {
423423
return;

0 commit comments

Comments
 (0)