Skip to content

Commit 93cf36f

Browse files
committed
Fixed: Issue where regular expression was returning false positive on profanities ending in 2 letters of the same e.g. ass would see as as a profanity.
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.
1 parent 12b2dea commit 93cf36f

4 files changed

Lines changed: 677 additions & 152 deletions

File tree

0 commit comments

Comments
 (0)