mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-11 20:19:25 +02:00
Case insensitive compare for area tags (#78)
This commit is contained in:
parent
7b73171d5c
commit
359241654b
1 changed files with 5 additions and 4 deletions
|
@ -104,8 +104,9 @@ function FTNMessageScanTossModule() {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getLocalAreaTagByFtnAreaTag = function(ftnAreaTag) {
|
this.getLocalAreaTagByFtnAreaTag = function(ftnAreaTag) {
|
||||||
|
ftnAreaTag = ftnAreaTag.toUpperCase(); // always compare upper
|
||||||
return _.findKey(Config.messageNetworks.ftn.areas, areaConf => {
|
return _.findKey(Config.messageNetworks.ftn.areas, areaConf => {
|
||||||
return areaConf.tag === ftnAreaTag;
|
return areaConf.tag.toUpperCase() === ftnAreaTag;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1374,12 +1375,12 @@ FTNMessageScanTossModule.prototype.performExport = function(cb) {
|
||||||
self.setAreaLastScanId(areaTag, newLastScanId, callback);
|
self.setAreaLastScanId(areaTag, newLastScanId, callback);
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
function complete(err) {
|
() => {
|
||||||
nextArea();
|
return nextArea();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}, err => {
|
}, err => {
|
||||||
cb(err);
|
return cb(err);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue