Auto merged - #2615 at Fri, 01 Oct 2021 21:17:07 GMT

Fixed parsing of firmware versions to support multi-digit versions.
10.7-maintenance 10.7.1
J Blackman 2021-10-02 07:17:07 +10:00 committed by Michael Keller
parent e459150c24
commit 72226a899c
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ TABS.firmware_flasher.initialize = function (callback) {
function populateBuilds(builds, target, manufacturerId, duplicateName, targetVersions, callback) {
if (targetVersions) {
targetVersions.forEach(function(descriptor) {
const versionRegex = /^(\d.\d.\d(?:-\w+)?)(?: #(\d+))?$/;
const versionRegex = /^(\d+.\d+.\d+(?:-\w+)?)(?: #(\d+))?$/;
const versionParts = descriptor.version.match(versionRegex);
if (!versionParts) {
return;