Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation not working the same way as filter #17

Open
lapswr opened this issue Jan 24, 2019 · 1 comment
Open

Validation not working the same way as filter #17

lapswr opened this issue Jan 24, 2019 · 1 comment

Comments

@lapswr
Copy link

lapswr commented Jan 24, 2019

I had an issue with my blacklist matching simple words as offensive and then i went into digging the issue and find out that the profanity validation is not working in the same way as filter.

Profanity validation is working with a simple "stripos" function
but filter is working with regex (preg_replace_callback) which makes a big difference when your blacklist has some words that can be found in simple words.

I think the validation should work in the same way as filter so blacklist have the same result in either way.

@AppGrind
Copy link

AppGrind commented Oct 13, 2019

Speaking of Blacklists, I think there should also be a Whitelist. For example, I have my config to "replaceFullWords" => false; Meaning something like "MF" the full word 😅changes to Mother%$^er, however, this also means "Assignment" becomes @#$ignment. Maybe a whitelist would do this package some good, where I can set a list of words that should be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants