Prepped ANSI is working very well + ANSI in FSE pristine in *most* cases

Moved prepAnsi() -> ansi_prep.js as ansiPrep (single export)
This commit is contained in:
Bryan Ashby 2017-08-28 23:17:35 -06:00
parent 1bad0de5c1
commit 9379c7f5e7
7 changed files with 238 additions and 31 deletions

View file

@ -7,6 +7,7 @@ const sauce = require('./sauce.js');
const Address = require('./ftn_address.js');
const strUtil = require('./string_util.js');
const Log = require('./logger.js').log;
const ansiPrep = require('./ansi_prep.js');
const _ = require('lodash');
const assert = require('assert');
@ -706,7 +707,7 @@ function Packet(options) {
return callback(null, basicHeader, toUserNameBuf, fromUserNameBuf, subjectBuf, msgBody, message.message);
}
strUtil.prepAnsi(
ansiPrep(
message.message,
{
cols : 80,