mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 03:30:40 +02:00
* Progress on FSE quote builder... WIP!
This commit is contained in:
parent
150de3953e
commit
cee7983c5a
4 changed files with 96 additions and 17 deletions
|
@ -215,10 +215,14 @@ function ViewController(options) {
|
|||
var initialFocusId = 1;
|
||||
|
||||
async.each(Object.keys(config.mci), function entry(mci, nextItem) {
|
||||
var mciMatch = mci.match(MCI_REGEXP); // :TODO: How to handle auto-generated IDs????
|
||||
var mciMatch = mci.match(MCI_REGEXP); // :TODO: How to handle auto-generated IDs????
|
||||
if(null === mciMatch) {
|
||||
self.client.log.warn( { mci : mci }, 'Unable to parse MCI code');
|
||||
return;
|
||||
}
|
||||
|
||||
var viewId = parseInt(mciMatch[2]);
|
||||
assert(!isNaN(viewId));
|
||||
var viewId = parseInt(mciMatch[2]);
|
||||
assert(!isNaN(viewId), 'Cannot parse view ID: ' + mciMatch[2]); // shouldn't be possible with RegExp used
|
||||
|
||||
if(viewId > highestId) {
|
||||
highestId = viewId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue