Skip to content

v4.0.1

Latest

Choose a tag to compare

@deemonic deemonic released this 27 Mar 07:02
· 1 commit to main since this release
e0a2ea5

Bug Fixes

  • Invisible Unicode bypass: Strip \p{Cf} format characters (zero-width spaces, invisible separators) from input before processing, so profanity like f⁣uck (with U+2063) is correctly detected
  • Asterisk censoring bypass: Add * as a universal letter substitution so censored profanity like f*g, s**t, f**k is detected
  • Internal masking: Use \x01 instead of * for internal masking during detection loop to prevent re-matching masked text
  • Null safety: Guard against preg_replace returning null on malformed UTF-8 input