Repository navigation
v4.3.0
Behaviour Change
- Blocked words now match inside longer words (#52): words passed to
block()or set in theblockconfig are caught inside longer words, soblock('appleacre')flagscrappleacreandblock('foo')flagsfooapple. Dictionary words still skip embedded matches (classroomstays clean), andallow()still overrides a blocked word.
Blasp::block('scam')->check('scampi'); // now flagged
Blasp::block('scam')->allow('scampi')->check('scampi'); // cleanBug Fixes
- Emoji ZWJ sequences preserved (#50):
clean()andoriginal()no longer break emoji like 💆♀️. Invisible format characters are still stripped before matching, sofuckis still caught, but only the masked words change in the returned text. Match positions now refer to the original text. - Callback masks passed to
mask()now run once per match when the text contains invisible format characters.