v3.1.8
Bug Fixes
- Fixed false positives when profanity detection incorrectly matched across separate words:
"an alert"no longer flags"anal""has 5 faces"no longer flags"ass"
The fix distinguishes between intentional obfuscation (like "@ss" which contains letters + special characters) and accidental word combinations (like "an al" which contains only letters).
What's Changed
- Improved
isSpanningWordBoundary()logic to check if standalone portions contain both letters AND non-letter characters - Added test cases for the new edge cases