Improvements for Profanity Validator


The following has been improved for Profanity Validator command:

  1. You can have as many custom bad words as needed. The settings button now correctly accepts both arrays and a string of comma separated bad words.
  2. Any space at the beginning/end of the bad word is now automatically trimmed.
  3. Save Variable (result) now correctly populates it with either 1 if profanity was found or 0 if it wasn’t.

Added more information about how the Profanity Validator command works:

Input - input to check for bad words

Replace bad word with - character or word to replace the bad words with

  • if a single character is used, it will replace each letter
    • Accepts: _, ~, -, =, | and *
  • if 2 or more characters are used, it will replace the whole words with it
    • Accepts: letters, numbers, _, ~, !, -, =, |, ’, “, *, ({ }), [ ], ()
    • Maximum length is 20 characters

Save Variable (result) - returns 1 if any profanity was detected or 0 if no profanity was detected

Save Variable (modified) - returns the whole modified string with any replacements - returns undefined if no bad words were found

Files

Input Validator.sef 36 kB
Mar 16, 2023

Get SAMMI Input Validator

Buy Now$2.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.