web-mech / badwords

A javascript filter for badwords
MIT License
631 stars 324 forks source link

Words not filtered if word is surrounded by special characters #108

Open isaxk opened 3 years ago

isaxk commented 3 years ago

If text such as

var input = "_[badword]_";

The output is just

>>>output
_[badword]_