From 64bdbe708410ee2753b32741c58c9caf36317582 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 17 Mar 2013 09:45:16 -0500 Subject: [PATCH] Chat URLs now open in a new tab Implement Issue#2 --- channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel.js b/channel.js index 86c312a5..95595a16 100644 --- a/channel.js +++ b/channel.js @@ -448,7 +448,7 @@ Channel.prototype.sendMessage = function(username, msg, msgclass) { // I don't want HTML from strangers msg = msg.replace(//g, ">"); // Match URLs - msg = msg.replace(/(((https?)|(ftp))(:\/\/[0-9a-zA-Z\.]+(:[0-9]+)?[^\s$]+))/, "$1"); + msg = msg.replace(/(((https?)|(ftp))(:\/\/[0-9a-zA-Z\.]+(:[0-9]+)?[^\s$]+))/, "$1"); this.sendAll('chatMsg', { username: username, msg: msg,