Skip to content

v4.1.0

Choose a tag to compare

@deemonic deemonic released this 02 Nov 13:40
· 51 commits to main since this release
3013555

New Features

  • Embedded profanity matching (opt-in): flag profanity inside longer words, for inputs without spaces such as usernames, slugs and short codes (myshit, qcuntz). Default behaviour is unchanged. (#54, thanks @BHMSD-bdailey)
Blasp::matchEmbedded()->check($text);

Or enable it for every check in config/blasp.php:

'match_embedded' => env('BLASP_MATCH_EMBEDDED', false),
  • Applies to the regex driver; pipeline() checks inherit it.
  • False positives and the allow list still apply, so classroom and assignment stay clean.
  • matchEmbedded(false) overrides a config value of true.
  • Included in the result cache key, so cached results don't mix between modes.

Related: #32, #51