You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to modify splitRegex prop. By default /\b/ defined as splitter.
To support russian language need to set "/\b/gu". But it still not working with a single world, like "Привет"
Code:
var Filter = require("bad-words");
var badWordFilter = new Filter();
var badwordtest = "мило"
var teststring = badWordFilter.clean(badwordtest);
Error:
Uncaught TypeError TypeError: Cannot read properties of null (reading '0')
at clean (..node_modules\bad-words\lib\badwords.js:58:41)
The text was updated successfully, but these errors were encountered: