mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-20 17:55:53 +02:00
Fix origin line to a signle leading space (reported by apam)
This commit is contained in:
parent
61c9a0d320
commit
05cf2c24ca
2 changed files with 2 additions and 2 deletions
|
@ -492,7 +492,7 @@ function Packet(options) {
|
||||||
} else if(line.startsWith('--- ')) {
|
} else if(line.startsWith('--- ')) {
|
||||||
// Tear Lines are tracked allowing for specialized display/etc.
|
// Tear Lines are tracked allowing for specialized display/etc.
|
||||||
messageBodyData.tearLine = line;
|
messageBodyData.tearLine = line;
|
||||||
} else if(/[ ]{1,2}(\* )?Origin\: /.test(line)) { // To spec is " * Origin: ..."
|
} else if(/[ ]{1,2}(\* )?Origin\: /.test(line)) { // To spec is " * Origin: ..."
|
||||||
messageBodyData.originLine = line;
|
messageBodyData.originLine = line;
|
||||||
endOfMessage = false; // Anything past origin is not part of the message body
|
endOfMessage = false; // Anything past origin is not part of the message body
|
||||||
} else if(line.startsWith('SEEN-BY:')) {
|
} else if(line.startsWith('SEEN-BY:')) {
|
||||||
|
|
|
@ -225,7 +225,7 @@ function getOrigin(address) {
|
||||||
Config.general.boardName;
|
Config.general.boardName;
|
||||||
|
|
||||||
const addrStr = new Address(address).toString('5D');
|
const addrStr = new Address(address).toString('5D');
|
||||||
return ` * Origin: ${origin} (${addrStr})`;
|
return ` * Origin: ${origin} (${addrStr})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTearLine() {
|
function getTearLine() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue