Strip pipe codes!

This commit is contained in:
Bryan Ashby 2018-12-17 21:39:10 -07:00
parent 03662dc056
commit 1f5ec39778
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,9 @@ const {
splitTextAtTerms,
} = require('../../string_util.js');
const AnsiPrep = require('../../ansi_prep.js');
const {
stripMciColorCodes
} = require('../../color_codes.js');
// deps
const NNTPServerBase = require('nntp-server');
@ -652,7 +655,7 @@ class NNTPServer extends NNTPServerBase {
}
);
} else {
message.preparedBody = cleanControlCodes(message.message, { all : true });
message.preparedBody = stripMciColorCodes(cleanControlCodes(message.message, { all : true }));
return cb(null);
}
}