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
Entering f u c k and f u ck using the default english match should count as profanity.
Actual behavior
Entries like fu ck are picked up but f u c k and f u ck are not. So is s h i t and any other similarly spaced profanity.
Minimal reproducible example
import{englishDataset,englishRecommendedTransformers,RegExpMatcher,}from"obscenity";constmatcher=newRegExpMatcher({
...englishDataset.build(),
...englishRecommendedTransformers,});exportfunctioncontainsProfanity(text: string): boolean{returnmatcher.hasMatch(text);}console.log(containsProfanity("f u c k"))
Steps to reproduce
No response
Additional context
No response
Node.js version
v20.11.0
Obscenity version
v0.4.3
Priority
Low
Medium
High
Terms
I agree to follow the project's Code of Conduct.
I have searched existing issues for similar reports.
The text was updated successfully, but these errors were encountered:
Expected behavior
Entering
f u c k
andf u ck
using the default english match should count as profanity.Actual behavior
Entries like
fu ck
are picked up butf u c k
andf u ck
are not. So iss h i t
and any other similarly spaced profanity.Minimal reproducible example
Steps to reproduce
No response
Additional context
No response
Node.js version
v20.11.0
Obscenity version
v0.4.3
Priority
Terms
The text was updated successfully, but these errors were encountered: