Skip to content

Releases: developerdino/ProfanityFilter

v1.3.0

Choose a tag to compare

@developerdino developerdino released this 11 May 00:23

This release introduces the ability to pass in your own list of profanities via an array instead of a file.

Added testing for PHP 7 to travis CI.

v1.2.4

Choose a tag to compare

@developerdino developerdino released this 18 Oct 22:29

Minor Release

Removed mick from the list of profanities as it causes the nick name of Mick short for Michael to be seen as a profanity.

v1.2.3

Choose a tag to compare

@developerdino developerdino released this 14 Aug 06:11

Minor release
Removed ho from profanities list as it is too aggressive - i.e. Anthony would be a profanity.
Removed ard from profanities as it is too aggressive - i.e. Millard would be a profanity.

v1.2.2

Choose a tag to compare

@developerdino developerdino released this 14 Aug 03:38

Added PHP version 5.6 to travis test suite.
Removed hell from list of profanities as it is not a swear word.
Added tests for clean and dirty words with spaces between letters.

v1.2.1

Choose a tag to compare

@developerdino developerdino released this 14 Aug 03:37

Fixed issue with short array syntax and PHP 5.3.

v1.2.0

Choose a tag to compare

@developerdino developerdino released this 14 Aug 03:37

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.

Note: This release is broken in PHP 5.3 due to short array syntax being used. Fixed in v1.2.1

v1.1.0

Choose a tag to compare

@developerdino developerdino released this 11 Aug 04:16

Minor package update which adds:

  • Simple obfuscation if a string is checked as having profanity.
  • Added close to 400 extra profanities to check against.

v1.0.0

Choose a tag to compare

@developerdino developerdino released this 11 Aug 04:13

Package to add profanity checking to your projects.