@yariplus lol yeah would be more simpler, I know about that method, but I went with the longer approach because my first few tries I had issues so I made assumptions that it was data type or something. Thanks though, that method definitely makes the code look cleaner.
Dead simple profanity filter and domain whitelisting
I made these plugins, I thought somebody else might want to use them as-is, fork them, etc. Both were tested with 0.9.x. Neither are configurable via ACP so I didn't publish to NPM, but wanted to share anyway:
Filters out profanity in posts and post titles. Also supports custom word list via environment variable
Email Domain Filter:
Set env var
[email protected]and only let people with an @club.org email address sign up.