Skip to content
Compare
Choose a tag to compare
@3chospirits 3chospirits released this 13 Jan 05:36

Added ability to use randomized characters for censoring filter.

const config = {
    cleanWith: ["#", "!", "?", "*"],
};
const filter = new Filter(config);

const cleaned = filter.clean("badword");
// results in "#?*!?#"

Special thanks to @CookedApps for the PR!