itch.io is community of indie game creators and players

Devlogs

1.3 Update to add 'Normalize' option

SAMMI Input Validator
A downloadable project

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:

  1. Download the updated .sef file.
  2. 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.
  3. You’re back in business!

Files

  • Input Validator 1.3.sef 37 kB
    Sep 09, 2024
Download SAMMI Input Validator
Leave a comment