diff options
Diffstat (limited to '')
-rw-r--r-- | source/javascripts/twitter_gitter.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/javascripts/twitter_gitter.js b/source/javascripts/twitter_gitter.js index 788883f2..fea8e6ba 100644 --- a/source/javascripts/twitter_gitter.js +++ b/source/javascripts/twitter_gitter.js @@ -50,8 +50,8 @@ 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?:\/\/\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>');
}
});
- - +
+
|