From 05cf2c24ca5fd08f467a7703d6107fde20c654a9 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 20 Jun 2016 14:24:11 -0600 Subject: [PATCH] Fix origin line to a signle leading space (reported by apam) --- core/ftn_mail_packet.js | 2 +- core/ftn_util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ftn_mail_packet.js b/core/ftn_mail_packet.js index c3fa1233..308130c4 100644 --- a/core/ftn_mail_packet.js +++ b/core/ftn_mail_packet.js @@ -492,7 +492,7 @@ function Packet(options) { } else if(line.startsWith('--- ')) { // Tear Lines are tracked allowing for specialized display/etc. 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; endOfMessage = false; // Anything past origin is not part of the message body } else if(line.startsWith('SEEN-BY:')) { diff --git a/core/ftn_util.js b/core/ftn_util.js index f1d0860e..11fb9a15 100644 --- a/core/ftn_util.js +++ b/core/ftn_util.js @@ -225,7 +225,7 @@ function getOrigin(address) { Config.general.boardName; const addrStr = new Address(address).toString('5D'); - return ` * Origin: ${origin} (${addrStr})`; + return ` * Origin: ${origin} (${addrStr})`; } function getTearLine() {