Skip to content

Releases: 3chospirits/badwords-filter

[email protected]

13 Jan 05:36
Compare
Choose a tag to compare

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!

[email protected]

14 Dec 05:32
Compare
Choose a tag to compare

Fixed a bug where symbols surrounded by spaces would offset the getUncleanWordIndexes() response, resulting in clean() to also return an incorrectly censored string.

[email protected]

05 Jun 21:39
Compare
Choose a tag to compare

Added typing for typescript support

[email protected]

26 Jun 19:27
4e9bd6d
Compare
Choose a tag to compare
Update README