Skip to content

Commit

Permalink
Auto merged - #2615 at Fri, 01 Oct 2021 21:17:07 GMT
Browse files Browse the repository at this point in the history
Fixed parsing of firmware versions to support multi-digit versions.
  • Loading branch information
blckmn authored and mikeller committed Oct 10, 2021
1 parent e459150 commit 72226a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/tabs/firmware_flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 72226a8

Please sign in to comment.