Releases: 3chospirits/badwords-filter
Releases · 3chospirits/badwords-filter
[email protected]
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]
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]
Added typing for typescript support
[email protected]
Update README