A lot of code tidy up

This commit is contained in:
Bryan Ashby 2020-06-15 19:08:55 -06:00
parent fd86293dbe
commit 9e9dc9af89
No known key found for this signature in database
GPG key ID: B49EB437951D2542
16 changed files with 144 additions and 140 deletions

View file

@ -887,7 +887,7 @@ module.exports = class Message {
} else {
const QUOTE_RE = /^ ((?:[A-Za-z0-9]{2}> )+(?:[A-Za-z0-9]{2}>)*) */;
const quoted = [];
const input = _.trimEnd(this.message).replace(/\x08/g, '');
const input = _.trimEnd(this.message).replace(/\x08/g, ''); // eslint-disable-line no-control-regex
// find *last* tearline
let tearLinePos = this.getTearLinePosition(input);