Commit 93cf36f
committed
Fixed: Issue where regular expression was returning false positive on profanities ending in 2 letters of the same e.g.
Updated regular expression to be lazy so it checks as many characters as possible.
Refactored Check class to make it easier to follow flow.
Renamed config file from badwords.php to profanities.php.
Added spec methods to test `ass`, `as` strings.ass would see as as a profanity.1 parent 12b2dea commit 93cf36f
4 files changed
Lines changed: 677 additions & 152 deletions
File tree
- config
- spec/mofodojodino/ProfanityFilter
- src/mofodojodino/ProfanityFilter
0 commit comments