Commits (2)
......@@ -1135,4 +1135,15 @@ function syncAttrCodesToANSI(pText)
}
else
return pText; // No Synchronet-style attribute codes found, so just return the text.
}
// Returns whether a string has any Synchronet attribute codes
//
// Parameters:
// pStr: the string to check
//
// Return value: Boolean - Whether or not the string has any Synchronet attribute codes
function hasSyncAttrCodes(pStr)
{
return (pStr.search(/\1[krgybmcwhifn\-_01234567]/i) > -1);
}
\ No newline at end of file
This diff is collapsed.
Digital Distortion Message Reader
Version 1.48
Release date: 2022-06-12
Version 1.49
Release date: 2022-06-13
by
......
......@@ -5,6 +5,10 @@ Revision History (change log)
=============================
Version Date Description
------- ---- -----------
1.49 2022-06-13 Refactor: Simplified saving a message to BBS machine for
sysop (as-is, less processing); removed attachment stuff
for pre-Synchronet 3.17; moved hasSyncAttrCodes() to
attr_conv.js because that's where it needs to be.
1.48 2022-06-12 Improved display of ANSI messages
1.47a 2022-03-23 Internal change: Now calls bbs.edit_msg() for editing an
existing message (for Synchronet 3.18 and up).
......