v3.1.7
What's Changed
Bug Fixes
-
fix: detect partial spacing profanity obfuscation - Profanity obfuscation using partial spacing is now correctly detected:
"s hit"→ detected as "shit""f uck"→ detected as "fuck""t wat"→ detected as "twat""fu c k"→ detected as "fuck""tw a t"→ detected as "twat"
-
fix: convert byte offset to character offset for multibyte support - Fixed boundary checks to work correctly with multibyte characters (accented letters in French, German, etc.)
Technical Details
The isSpanningWordBoundary() method was refactored to check surrounding context instead of relying on heuristics about single-character parts. This ensures partial spacing obfuscation is detected while still preventing false positives like "This musicals hit".
Full Changelog: v3.1.6...v3.1.7