Skip to content

v3.1.1

Choose a tag to compare

@deemonic deemonic released this 26 Jan 20:45
· 14 commits to main since this release
f056f5f

Bug Fixes

  • Fixed spaced profanity detection (#36) - Spaced-out obfuscation like f u c k i n g is now correctly detected as profanity

What changed

The isSpanningWordBoundary() method was incorrectly rejecting intentional obfuscation where characters are separated by spaces. The fix distinguishes between:

  • Intentional obfuscation (all parts are single chars) → now detected ✅
  • Cross-word accidents (only some parts are single chars) → still rejected to avoid false positives

Example

$result = Blasp::check('This is f u c k 1 n g awesome!');
$result->hasProfanity; // true ✅

Full Changelog: v3.1.0...v3.1.1