Skip to content
Snippets Groups Projects
Commit dfd1e302 authored by Eric Oulashin's avatar Eric Oulashin
Browse files

DDMsgReader refactor for sysop save to BBS machine & attachments.

DDMsgReader Version 1.49 - 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.
parent b19466b5
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!187DDMsgReader refactor for sysop save to BBS machine & attachments.
Pipeline #3118 passed
......@@ -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).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment