1.3 Update to add 'Normalize' option
The extension has been updated to include a new ‘Normalize’ option for all Regex commands.
What does it do?
The ‘Normalize’ option uses the NFD method to break down characters with accents or diacritical marks into their base forms (e.g., ñ
becomes n
+ combining tilde).
This is particularly useful for filtering out spam in chats where spammers use accented or visually similar characters to bypass filters (e.g., ë
instead of e
).
By normalizing the input, the regular expressions catch all variations, improving the ability to detect and filter out spam.
Here’s an example of how it works with some common spam phrases:
Ch̍eap Viewers on
B͟est Viewers on
Ch͟eap viewers on
B̟est viewers on
After running the replace command with /[\u0300-\u036f\̟͟]/g
regex and normalization enabled, the result is:
Cheap Viewers on
Best Viewers on
Cheap viewers on
Best viewers on
Full example button to filter out spam from your chat messages can be found inside the premade deck.
This version also newly supports using all commands in non persistent buttons.
How To update:
- Download the updated .sef file.
- Install the extension in SAMMI. When prompted to replace the extension, click yes. When asked to replace the deck, click no, as there are no changes to the deck.
- You’re back in business!
Files
Get SAMMI Input Validator
SAMMI Input Validator
Status | Released |
Category | Other |
Author | Christina K |
More posts
- Input Validator Improvements and Bug FixesJul 30, 2023
- Improvements for Profanity ValidatorMar 16, 2023
Leave a comment
Log in with itch.io to leave a comment.