mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
updated styles for delicious and twitter
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user