Updated flags, fix true/false being censored in cleaned output

This commit is contained in:
TheEssem 2021-05-17 19:09:30 -05:00
parent cb6e1b5f36
commit 753bf84f78
No known key found for this signature in database
GPG key ID: A3F9F02129092FCA
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit c7854e5872b46a75160facabe4100f5ce704c0ae
Subproject commit b26219baeb920506e40bc6db42fcde609fb499c7

View file

@ -7,7 +7,7 @@ exports.random = (array) => {
};
const optionalReplace = (token) => {
return token === undefined || token === "" ? "" : "<redacted>";
return token === undefined || token === "" ? "" : (token === "true" || token === "false" ? token : "<redacted>");
};
// clean(text) to clean message of any private info or mentions