Nick highlighting is a bit weird sometimes
swantzter opened this issue · comments
Svante Bengtson commented
(like highlighting t
in don't
)
Eric Mertens commented
Current behavior is to search for runs of nick-characters in a chat message. I'd be interested in a better algorithm. I want to make sure cases like I heard "glguy was here"
to catch glguy.
Svante Bengtson commented
What about requiring 2 or more chars for nick highlighting. Not that many has a one letter nick and they might as well be highlighted with the standard text colour
travankor commented
Isn’t this still an issue if a nick is a substring of a word?
Eric Mertens commented
No, it only matches whole sequences of nickname characters. exampleglguy
wouldn't highlight glguy
, for example.