v3.1.1
Bug Fixes
- Fixed spaced profanity detection (#36) - Spaced-out obfuscation like
f u c k i n gis 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