\r
// Parse any links found\r
msg.msg = msg.msg.replace(/(([A-Za-z0-9\-]+\:\/\/)|(www\.))([\w.\-]+)([a-zA-Z]{2,6})(:[0-9]+)?(\/[\w#!:.?$'()[\]*,;~+=&%@!\-\/]*)?/gi, function (url) {\r
- var nice, extra_html = '';\r
+ var nice = url,\r
+ extra_html = '';\r
\r
// Add the http if no protoocol was found\r
if (url.match(/^www\./)) {\r
}\r
\r
// Shorten the displayed URL if it's going to be too long\r
- nice = url;\r
if (nice.length > 100) {\r
nice = nice.substr(0, 100) + '...';\r
}\r