-
-
Notifications
You must be signed in to change notification settings - Fork 812
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
Case insensitive text filtering #93
Comments
that's a good idea. I will try to implement it soon! |
i want to add something here: words start with characters like '@' or '#' can't be filtered. |
is this a feature request ? or you mean this happens ? by the way, this feature is coming in the next release! |
After v0.1.29, by default text filtering will be case insensitive. If you need case-sensitive text filtering, you can set it to true. see example configuration plugins:
filter:
text:
case_sensitive: true # default is false if you don't write this line
whitelist: ["this word"]
blacklist: ["hello"] |
Thanks ahhnik. :) |
Yes. when someone wants to omit "@someid" the program run in to error. |
Thank you, I just want to note that the default previously was true, so if updating something to note. I also would like to suggest this feature request remains open, being that the second half of the suggestion isn't yet implemented. That is the match whole word option. |
Also an another note, it may be a good idea to have the case sensitive option be separated for the blacklist and whitelist, not necessary for me, but a nice to have. |
what do you mean by match whole words ? @RebbePod |
If I'm looking for "good" for example, if it matches only whole words the following would match: |
issue #136 will fix it |
Regex would would fix it, but lots of people don't know regex, I think it would be great to have as a separate basic option, and for advanced functions regex can be used. |
@ehs4nm there is no problem. with the latest version of tgcf, I tested read #138 (comment) |
I just want to start off saying: thank you very much @aahnik everything is working perfectly!
Just a nice to have feature would be to have the whitelist and blacklist filters, have an optional match-case / match whole word option.
The text was updated successfully, but these errors were encountered: