MoriTanosuke/chocket — pull request #14 by pbromley (2012-08-08 21:42:37+00:00)
Title: added highlighting to text when your username is mentioned in the chat

does a regular expression check to see if your username is mentioned in the text and if so highlights the message.

The mention has to be the full username at the start of the text, end of the text or surrounded a space. This is only a single \s because the message seems to remove extra spaces in the text when submitted.