- Fix the regular expression can not show correctly if the name having more then one "_".
Conflicts: tabs/firmware_flasher.js10.3.x-maintenance
parent
38e0d868c7
commit
5cc3608a61
|
@ -43,7 +43,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
|||
var releaseDescriptors = [];
|
||||
TABS.firmware_flasher.releases.forEach(function(release){
|
||||
release.assets.forEach(function(asset){
|
||||
var targetFromFilenameExpression = /.*_(.*)\.(.*)/;
|
||||
var targetFromFilenameExpression = /w*_(.*)\.(.*)/;
|
||||
var match = targetFromFilenameExpression.exec(asset.name);
|
||||
|
||||
if (!showDevReleases && release.prerelease) {
|
||||
|
@ -54,7 +54,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
|||
return;
|
||||
}
|
||||
|
||||
var target = match[1];
|
||||
var target = match[1].replace("_", "_");
|
||||
var format = match[2];
|
||||
|
||||
if (format != 'hex') {
|
||||
|
@ -530,5 +530,3 @@ TABS.firmware_flasher.cleanup = function (callback) {
|
|||
if (callback) callback();
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue