1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +03:00

Fixed parsing of firmware versions to support multi-digit versions.

This commit is contained in:
Michael Keller 2021-10-01 02:02:09 +13:00
parent 27ad23c970
commit 7152730e20

View file

@ -419,7 +419,7 @@ 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;