aboutsummaryrefslogtreecommitdiff
path: root/source/javascripts/twitter_gitter.js
diff options
context:
space:
mode:
authorB Mathis <brandon@imathis.com>2009-11-06 11:04:12 -0600
committerB Mathis <brandon@imathis.com>2009-11-06 11:04:12 -0600
commitd2a23f60e98966335ba1939c570a7e020084607d (patch)
treee25d9939ff82d2bc402576863d5f7b734856a9a6 /source/javascripts/twitter_gitter.js
parente062eaa7a4d550a8cba1f772cd2a20f561c411b4 (diff)
downloadmy_new_personal_website-d2a23f60e98966335ba1939c570a7e020084607d.tar.xz
my_new_personal_website-d2a23f60e98966335ba1939c570a7e020084607d.zip
now twitter handles linking better, and replaces endlines with <br> tags
Diffstat (limited to '')
-rw-r--r--source/javascripts/twitter_gitter.js6
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>');
}
});
-
-
+
+