-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The MOMMY_FORBIDDEN_WORDS
setting doesn't support regex filtering
#103
Comments
MOMMY_FORBIDDEN_WORDS
settingMOMMY_FORBIDDEN_WORDS
setting doesn't support regex filtering
you're right, regex filtering is not (yet?) supported. sorry if i was not clear and falsely got your hopes up. i assumed that exact matching would at least be somewhat useful in that regard. i also assumed hex escapes would work inside the pattern matching, but unfortunately not. i will investigate how to make that work, it should be relatively easy for me to get working. (i'll let you know once that is implemented.) if i manage to get both (1) hex escapes and (2) hex ranges (e.g. |
I would still need general regex functionality sadly, as many of my Tourette's triggers have a TON of spelling variations that ALL need to be avoided. Luckily, I already have a couple of regexes that cover ALL of them, or at least, should lol. They're currently being used in a filter script for my IRC client. :P |
the easiest way for me to do this would be to filter out individual templates and variables before they are assembled, but that might not be sufficient if you have complex multi-word triggers. for example, let's say
with my approach, mommy will remove possible values for however, if the triggers are please let me know whether you think this solution will be good enough :) |
No, none of my triggers are multi-word, they're all very simple and EXTREMELY common single words. So that won't be necessary. |
mommy v1.5.0 has been released and is now available as explained in the installation instructions :) |
I need this setting to support regex filtering with hex escapes so that I can fully avoid triggering my Tourette's when making use of this setting, as typing my triggers or even just reading them will trigger it, thus causing me to twitch VERY painfully. However, the documentation for this setting currently makes no mention of regex filtering at all.
EDIT: Upon reading the code, it seems it doesn't support regex filtering at all.
The text was updated successfully, but these errors were encountered: