updated styles for delicious and twitter
This commit is contained in:
parent
8cb2f15487
commit
bc033cfa8e
6 changed files with 46 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue