moko256 / twitlatte

Twitter and Mastodon client for Android
Apache License 2.0
102 stars 13 forks source link

Regex muting not working on retweets #42

Open ckuethe opened 5 years ago

ckuethe commented 5 years ago

I'm glad that this program has regex mutes for tweets, but it doesn't seem to be working when people retweet a post with some of my muted words.

moko256 commented 5 years ago

Hello. What regex are you using?

ckuethe commented 5 years ago

democrat|republican

ckuethe commented 5 years ago

I have a longer, more complicated, regex but the previous example is sufficient to reproduce the issue.

To test, I created my regex pattern, force quit twitlatte, cleared the cache, and restarted the program.

Are the patterns case sensitive?

ckuethe commented 5 years ago

And is there a maximum length of pattern?

moko256 commented 5 years ago

case sensitive: yes maximum of length: no

ckuethe commented 5 years ago

Could you add an option to make regexes case insensitive?

moko256 commented 5 years ago

Inserting (?i) in the first will make regex case insensitive, but I will add the options for easy use.