From bc033cfa8e2332a07c2b56ad36eb894c0a6f3ec2 Mon Sep 17 00:00:00 2001 From: B Mathis Date: Mon, 9 Nov 2009 23:38:48 -0600 Subject: updated styles for delicious and twitter --- source/javascripts/twitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/javascripts') diff --git a/source/javascripts/twitter.js b/source/javascripts/twitter.js index b1949913..975e7adb 100644 --- a/source/javascripts/twitter.js +++ b/source/javascripts/twitter.js @@ -140,7 +140,7 @@ var TwitterGitter = new Class({ //format linkify: function(text) { //courtesy of Jeremy Parrish (rrish.org) - return text.replace(/(https?:\/\/\S+)/gi,'$1').replace(/(^|\s)@(\w+)/g,'$1@$2').replace(/(^|\s)#(\w+)/g,'$1#$2'); + return text.replace(/(https?:\/\/[\w\-:;?&=+.%#\/]+)/gi,'$1').replace(/(^|\s)@(\w+)/g,'$1@$2').replace(/(^|\s)#(\w+)/g,'$1#$2'); } }); //Compact Jsonp from http://clientcide.com/js -- cgit v1.2.1