mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 05:15:21 +03:00
Fixed parsing of firmware versions to support multi-digit versions.
This commit is contained in:
parent
27ad23c970
commit
7152730e20
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ firmware_flasher.initialize = function (callback) {
|
||||||
function populateBuilds(builds, target, manufacturerId, duplicateName, targetVersions, callback) {
|
function populateBuilds(builds, target, manufacturerId, duplicateName, targetVersions, callback) {
|
||||||
if (targetVersions) {
|
if (targetVersions) {
|
||||||
targetVersions.forEach(function(descriptor) {
|
targetVersions.forEach(function(descriptor) {
|
||||||
const versionRegex = /^(\d.\d.\d(?:-\w+)?)(?: #(\d+))?$/;
|
const versionRegex = /^(\d+.\d+.\d+(?:-\w+)?)(?: #(\d+))?$/;
|
||||||
const versionParts = descriptor.version.match(versionRegex);
|
const versionParts = descriptor.version.match(versionRegex);
|
||||||
if (!versionParts) {
|
if (!versionParts) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue