mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +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) {
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue