cleanControlCodes -> stripAnsiControlCodes

This commit is contained in:
Bryan Ashby 2018-12-17 22:08:59 -07:00
parent eeaeef9a8c
commit f4088303ca
4 changed files with 9 additions and 11 deletions

View file

@ -8,7 +8,7 @@ const Config = require('../../config.js').get;
const {
splitTextAtTerms,
isAnsi,
cleanControlCodes
stripAnsiControlCodes
} = require('../../string_util.js');
const {
getMessageConferenceByTag,
@ -218,7 +218,7 @@ exports.getModule = class GopherModule extends ServerModule {
);
} else {
const cleaned = stripMciColorCodes(
cleanControlCodes(body, { all : true } )
stripAnsiControlCodes(body, { all : true } )
);
const prepped =
splitTextAtTerms(cleaned)