Repository navigation
v4.1.0
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
classroomandassignmentstay clean. matchEmbedded(false)overrides a config value oftrue.- Included in the result cache key, so cached results don't mix between modes.