limechat icon indicating copy to clipboard operation
limechat copied to clipboard

Nick highlighting is too general.

Open dmtucker opened this issue 9 years ago • 1 comments

On Freenode, I go by dtux. I woke up to a bunch of notifications this morning from people mentioning someone else that goes by re**_dtux**_edocash. Seems like that probably shouldn't happen...

edit: 2018-03-29 Still happens (reproduced with just redtuxedo)

dmtucker avatar Aug 05 '16 17:08 dmtucker

It looks like the relevant section is in LogRenderer.m, at the loop for (NSString* keyword in keywords).

Right now, it does a simple -rangeOfString:options:range with NSCaseInsensitiveSearch.

An improved version could use an NSRegularExpression, running -escapedPatternForString on the keyword, and surrounding it with something like \b.

kengruven avatar Dec 22 '20 18:12 kengruven