Strip pipe codes!
This commit is contained in:
parent
03662dc056
commit
1f5ec39778
|
@ -20,6 +20,9 @@ const {
|
||||||
splitTextAtTerms,
|
splitTextAtTerms,
|
||||||
} = require('../../string_util.js');
|
} = require('../../string_util.js');
|
||||||
const AnsiPrep = require('../../ansi_prep.js');
|
const AnsiPrep = require('../../ansi_prep.js');
|
||||||
|
const {
|
||||||
|
stripMciColorCodes
|
||||||
|
} = require('../../color_codes.js');
|
||||||
|
|
||||||
// deps
|
// deps
|
||||||
const NNTPServerBase = require('nntp-server');
|
const NNTPServerBase = require('nntp-server');
|
||||||
|
@ -652,7 +655,7 @@ class NNTPServer extends NNTPServerBase {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
message.preparedBody = cleanControlCodes(message.message, { all : true });
|
message.preparedBody = stripMciColorCodes(cleanControlCodes(message.message, { all : true }));
|
||||||
return cb(null);
|
return cb(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue