GNOME Bugzilla – Bug 761723
Polari doesn't recognize mentions with unmatching letter case
Last modified: 2016-02-18 00:17:39 UTC
When someone mentions my name (Tirifto) and uses letters of different case (tirifto) (TiRifTo), Polari doesn't recognize the mention. There is no highlight and no notification. Ideally, Polari should recognize a mention regardless of the case.
Created attachment 320647 [details] [review] util: Casefold basenick The purpose of "basenicks" is to group different nicks that supposedly identify the same person - it makes sense to not only apply this to different suffixes, but also differences in case.
Created attachment 320648 [details] [review] room: Use case-insensitive matching for nick highlights For nicks that aren't all lowercase(*), it is easy enough to get the case wrong when not using tab completion, so use case-insensitive matching for nick highlights. (*) or shouty all uppercase of course
Created attachment 320822 [details] [review] Recognize mentions with unmatching letter case Convert the message text to lowercase and search for nick.
Attachment 320647 [details] pushed as 7d6a7db - util: Casefold basenick Attachment 320648 [details] pushed as 7ba3a92 - room: Use case-insensitive matching for nick highlights