From d064a195eb5495fa426f7ee7c28dfd1d14e7a2ae Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 30 Dec 2012 01:31:14 +0000 Subject: [PATCH] Client: URL regex allowing '-' --- client/assets/dev/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index 93050f5..ff5b165 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -315,7 +315,7 @@ _kiwi.view.Panel = Backbone.View.extend({ // Parse any links found - msg.msg = msg.msg.replace(/(([A-Za-z0-9\-]+\:\/\/)|(www\.))([\w.]+)([a-zA-Z]{2,6})(:[0-9]+)?(\/[\w#!:.?$'()[\]*,;~+=&%@!\-\/]*)?/gi, function (url) { + msg.msg = msg.msg.replace(/(([A-Za-z0-9\-]+\:\/\/)|(www\.))([\w.\-]+)([a-zA-Z]{2,6})(:[0-9]+)?(\/[\w#!:.?$'()[\]*,;~+=&%@!\-\/]*)?/gi, function (url) { var nice, extra_html = ''; // Add the http if no protoocol was found -- 2.25.1