Skip to content

v3.1.6

Choose a tag to compare

@deemonic deemonic released this 27 Jan 13:29
· 39 commits to main since this release
5e1e0fc

Bug Fixes

  • Fix accented character false positives (#24): Added /u (PCRE_UTF8) flag to generated profanity regex patterns, preventing multi-byte UTF-8 characters (e.g. ê, é) from being matched byte-by-byte and causing false positives on words like "tête" and "aré".
  • Validate UTF-8 input: Added encoding validation at the check() entry point to sanitize non-UTF-8 strings before regex matching, preventing silent preg_match failures.