Skip to content

v3.1.8

Choose a tag to compare

@deemonic deemonic released this 03 Feb 13:51
· 4 commits to main since this release

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