badwords icon indicating copy to clipboard operation
badwords copied to clipboard

Get exception when try to clean string as '@'

Open doherty88 opened this issue 4 years ago • 2 comments

Hello, You can use following code to reproduce this exception. it is happend in version 3.0.4. And I also tried with 3.0.3, there was no excepiton. var Filter = require('bad-words'), filter = new Filter();

console.log(filter.clean("@"));

Thanks Deyang

doherty88 avatar Dec 15 '20 01:12 doherty88

Same for: / ! etc

vdfdev avatar Dec 18 '20 01:12 vdfdev

Appears to be a duplicate of #93

johnnyapol avatar Dec 29 '20 00:12 johnnyapol