Nick highlighting is too general.
Opened this issue · 1 comments
dmtucker commented
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)
kengruven commented
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
.