Enable ESX X field to have arguments
This commit is contained in:
parent
690c507d11
commit
8e15c890a5
@ -445,7 +445,7 @@ PageFrame.prototype.parse = function(text,context) {
|
||||
advance++;
|
||||
|
||||
// Find our end ST param in the next DYNAMIC_FIELD_SIZE_MAX chars
|
||||
matches = text.substr(p+advance,DYNAMIC_FIELD_SIZE_MAX).match(/(([a-zA-Z._^;]+[0-9]?;-?[0-9^;]+)([;]?[^;]+)?)\x1b\\/);
|
||||
matches = text.substr(p+advance,DYNAMIC_FIELD_SIZE_MAX).match(/(([a-zA-Z._:^;]+[0-9]?;-?[0-9^;]+)([;]?[^;]+)?)\x1b\\/);
|
||||
//log(LOG_DEBUG,'- DF ['+r+'x'+c+'] ADVANCE: '+advance+', MATCHES: '+JSON.stringify(matches)+', LENGTH: '+(matches ? matches[0].length : 0)+', STRING: '+text.substr(p+advance,50));
|
||||
|
||||
if (! matches) {
|
||||
|
@ -111,6 +111,14 @@ function atcode(field,length,pad,context) {
|
||||
|
||||
pad = pad ? pad : ' ';
|
||||
var result = '';
|
||||
var args = [];
|
||||
|
||||
if (field.search(/:/)) {
|
||||
args = field.split(':');
|
||||
field = args.shift();
|
||||
}
|
||||
|
||||
//log(LOG_DEBUG,'Field:'+field,'Args:'+JSON.stringify(args));
|
||||
|
||||
switch(field) {
|
||||
// Get the ECHOAREA FTN AREA_TAG
|
||||
|
@ -268,8 +268,6 @@ MsgArea.prototype.getUserStats = function() {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
MsgArea.prototype.tag_msgs = function() {
|
||||
const MAX_PAGE_NUM = 9999;
|
||||
|
||||
var msgs = this.list_untagged;
|
||||
|
||||
// See if we need to something
|
||||
|
Loading…
Reference in New Issue
Block a user