mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
cleanControlCodes -> stripAnsiControlCodes
This commit is contained in:
parent
eeaeef9a8c
commit
f4088303ca
4 changed files with 9 additions and 11 deletions
|
@ -16,7 +16,7 @@ const Message = require('../../message.js');
|
|||
const FTNAddress = require('../../ftn_address.js');
|
||||
const {
|
||||
isAnsi,
|
||||
cleanControlCodes,
|
||||
stripAnsiControlCodes,
|
||||
splitTextAtTerms,
|
||||
} = require('../../string_util.js');
|
||||
const AnsiPrep = require('../../ansi_prep.js');
|
||||
|
@ -655,7 +655,7 @@ class NNTPServer extends NNTPServerBase {
|
|||
}
|
||||
);
|
||||
} else {
|
||||
message.preparedBody = stripMciColorCodes(cleanControlCodes(message.message, { all : true }));
|
||||
message.preparedBody = stripMciColorCodes(stripAnsiControlCodes(message.message, { all : true }));
|
||||
return cb(null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue