kerphi/phpfreechat — pull request #24 by agam360 (2012-12-29 12:46:44+00:00)
Title: Adding anchor tags to links

I've added some code to highlight and tag links when found in the chat
message.
code:
var urlRegEx =
/^(((http|https):\/\/)?[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+.*)$/gi;
var u = t('

').html(n.body.replace(urlRegEx,
"$1"));

(Sorry if this isn't quite ordered, its my first time using git/github :) and my first "contribution"/pull request, I hope it helps! )

Agam