Enable ESX X field to have arguments

This commit is contained in:
Deon George 2022-05-13 22:31:47 +10:00
parent 690c507d11
commit 8e15c890a5
3 changed files with 9 additions and 3 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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