jQuery.ProfanityFilter icon indicating copy to clipboard operation
jQuery.ProfanityFilter copied to clipboard

Outsmart the l33t.

Open jpoehls opened this issue 13 years ago • 5 comments

The filter should be smart enough to find profanity that uses 0 (zeros) to represent O's. 3's for e's, and whatever other character replacements are common for bypass filters like this.

jpoehls avatar Jul 11 '12 22:07 jpoehls

You're absolutely correct. That's why you can add your custom phrases to your json phrases file. For performance reasons, I'd prefer using array matching over tons of regex matching (but hey, that's just me). The implementation that I needed this for is an "opt in" filter. This means that in my particular application, there shouldn't be any "bypass" attempts.

Feel free to submit a pull request with the addition of regex matching. Just be sure to make it "optional" within the config.

ChaseFlorell avatar Jul 11 '12 22:07 ChaseFlorell

If I can get time, I might add this feature. I'm just super busy right now.

ChaseFlorell avatar Jul 11 '12 22:07 ChaseFlorell

My boss was actually noting that this didn't have regex...so that would be awesome to have added!

ferventcoder avatar Jul 11 '12 22:07 ferventcoder

I would love to help contribute!

acupoftee avatar Sep 22 '17 04:09 acupoftee

I would love the help! I haven't touched javascript in several years as I'm working on Xamarin mobile apps. I'll accept any PR you can send :)

ChaseFlorell avatar Sep 22 '17 14:09 ChaseFlorell