meebey / smuxi

Smuxi is an user-friendly and free IRC client for Linux, Windows and Mac OS X based on GNOME / GTK+
https://smuxi.im/
GNU General Public License v2.0
172 stars 46 forks source link

Highlight words are being treated as case sensitive. #243

Closed zoredache closed 8 years ago

zoredache commented 8 years ago

I have the pattern zore set in my highlight words. If someone communicating me uses ZORE, or zoRE, or anything else other than zore then I will not get a highlight.

Please do one of the following.

IMO the best option would be to just apply RegexOptions.IgnoreCase to all highlightword patterns. Since you have decided to escape everything I provide, you seem to be trying to make this user-friendly. So make it more user-friendly, and make it case insensitive. It is very annoying to have my attempts to do something like /[aA][bB][cC]/ to get a case insensitive search escaped away, and also not be able to provide a pattern that would be case insensitive.

On method might be to permit passing regex options similar to sed at the end of the regex.

meebey commented 8 years ago

You are right, you can use regex but not provide regex options like /foo/i, I will look into this. By default it shouldn't be case sensitive, like regular highlight words, but be case insensitive.