From cc46e8852249a245b95f1bcdce775c8169c097f2 Mon Sep 17 00:00:00 2001 From: Samuel Reis Date: Sat, 18 Sep 2010 12:29:13 +0200 Subject: [PATCH] fix url replace to include brackets --- TwittiaCore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwittiaCore.js b/TwittiaCore.js index 794f076..c2b99de 100644 --- a/TwittiaCore.js +++ b/TwittiaCore.js @@ -306,7 +306,7 @@ Twittia.prototype.authorizationHeader = function(method, url, params) { } function replaceURLWithHTMLLinks(text) { - var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; + var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_()|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; return text.replace(exp,"$1"); }