mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-02 07:51:52 +02:00
Fix up some font switching logic
This commit is contained in:
parent
f78a4cef46
commit
ea39811ff6
5 changed files with 53 additions and 48 deletions
|
@ -44,7 +44,13 @@ module.exports = class DescriptIonFile {
|
|||
}
|
||||
|
||||
const fileName = parts[1] || parts[2];
|
||||
const desc = parts[3].replace(/\\r\\n|\\n/g, '\r\n'); // un-escape CR/LF's
|
||||
|
||||
//
|
||||
// Un-escape CR/LF's
|
||||
// - escapped \r and/or \n
|
||||
// - BBBS style @n - See https://www.bbbs.net/sysop.html
|
||||
//
|
||||
const desc = parts[3].replace(/\\r\\n|\\n|[^@]@n/g, '\r\n');
|
||||
|
||||
descIonFile.entries.set(
|
||||
fileName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue