diff options
author | B Mathis <brandon@imathis.com> | 2009-11-09 23:38:48 -0600 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-11-09 23:38:48 -0600 |
commit | bc033cfa8e2332a07c2b56ad36eb894c0a6f3ec2 (patch) | |
tree | c0d6ad4fbe676659e1662a0e83684fbfcbc260d0 /source/javascripts | |
parent | 8cb2f154876a0d3b621bceedd1f73ac79a86cd99 (diff) | |
download | my_new_personal_website-bc033cfa8e2332a07c2b56ad36eb894c0a6f3ec2.tar.xz my_new_personal_website-bc033cfa8e2332a07c2b56ad36eb894c0a6f3ec2.zip |
updated styles for delicious and twitter
Diffstat (limited to 'source/javascripts')
-rw-r--r-- | source/javascripts/twitter.js | 2 |
1 files changed, 1 insertions, 1 deletions
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,'<a href="$1">$1</a>').replace(/(^|\s)@(\w+)/g,'$1<a href="http://twitter.com/$2">@$2</a>').replace(/(^|\s)#(\w+)/g,'$1<a href="http://search.twitter.com/search?q=%23$2">#$2</a>'); + return text.replace(/(https?:\/\/[\w\-:;?&=+.%#\/]+)/gi,'<a href="$1">$1</a>').replace(/(^|\s)@(\w+)/g,'$1<a class="user" href="http://twitter.com/$2">@$2</a>').replace(/(^|\s)#(\w+)/g,'$1<a class="topic" href="http://search.twitter.com/search?q=%23$2">#$2</a>'); } }); //Compact Jsonp from http://clientcide.com/js |