Skip to content

Releases: developerdino/ProfanityFilter

v1.3.0

11 May 00:23
Compare
Choose a tag to compare

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

18 Oct 22:29
Compare
Choose a tag to compare

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

14 Aug 06:11
Compare
Choose a tag to compare

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

14 Aug 03:38
Compare
Choose a tag to compare

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

14 Aug 03:37
Compare
Choose a tag to compare

Fixed issue with short array syntax and PHP 5.3.

v1.2.0

14 Aug 03:37
Compare
Choose a tag to compare

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

11 Aug 04:16
Compare
Choose a tag to compare

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

11 Aug 04:13
Compare
Choose a tag to compare

Package to add profanity checking to your projects.