-
Notifications
You must be signed in to change notification settings - Fork 26
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
Only replace bad word, not entire sentence that contains the bad word #20
Comments
Hi. Could you please provide a sentence this is happening with so I can test it against the code above. From memory it should only modify the word not the sentence so I'd like to fix it if possible. Also could you supply php version you are using. Cheers |
I confirmed that this is the case and I can replicate it. I will look to fix this soon, might be a bit harder than I originally thought. |
Rgr doger. Thanks. |
I've managed to fix this on my script:
It will also work with several instance of words since it works inside the foreach loop |
I feel like I'm missing something. I simply want the 1 bad word replaced with ****, but instead the filter replaces the entire sentence with *****.
Thanks.
The text was updated successfully, but these errors were encountered: