Closed Ibuprofen closed 8 years ago
Agreed, definitely can't have that! A pull request would be most welcome. Maybe add dot, question mark and exclamation mark to the list of characters too?
Sure thing! https://github.com/ekmartin/slack-irc/pull/74
I have a user in my slack with the name of
don
, unfortunately the user is notified any time someone writesdon't
due to the way the regex is setup in thehighlightUsername
function.I have a small code change which does not break the tests and allows don to get relief from the notifications. The regex will look for usernames with a colon or comma as part of the word, if not, they are not highlighted. This will still allow
username:
andusername, blah
but notusername's
.If this is disired I will open a PR. What do you think? Thanks.