Skip to content

Gives TypeError on Russian letters #174

@SeanLangre

Description

@SeanLangre

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions