jo3-l / obscenity

Robust, extensible profanity filter for NodeJS
MIT License
70 stars 2 forks source link

If the obscene word is at the beginning the censoring is not recovered #69

Closed vonbv closed 1 month ago

vonbv commented 1 month ago

Expected behavior

Typing "fu" censors the word into "" but continuing on to typing "funtastic" yields a "ntastic". It's similar to "as" filtering to "" but having "assembly" yields "sembly".

Actual behavior

**ntastic

Minimal reproducible example

No response

Steps to reproduce

No response

Additional context

No response

Node.js version

v20.11.1

Obscenity version

v0.3.1

Priority

Terms

jo3-l commented 1 month ago

Thanks for the report, but it's not at all clear what the actual issue is from your description. Can you provide a minimal reproducible example and explicitly identify the actual versus expected output?

Note that with the default dataset, neither of the strings funtastic nor assembly contain any matches.

jo3-l commented 1 month ago

Per my previous comment, this issue is not actionable as is. Given the lack of response, I am closing off this issue for now but would be happy to reopen and investigate further if more detail is provided. Thanks.