Fix origin line to a signle leading space (reported by apam)

This commit is contained in:
Bryan Ashby 2016-06-20 14:24:11 -06:00
parent 61c9a0d320
commit 05cf2c24ca
2 changed files with 2 additions and 2 deletions

View file

@ -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:')) {

View file

@ -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() {