From d2a23f60e98966335ba1939c570a7e020084607d Mon Sep 17 00:00:00 2001 From: B Mathis Date: Fri, 6 Nov 2009 11:04:12 -0600 Subject: now twitter handles linking better, and replaces endlines with
tags --- source/javascripts/twitter_gitter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/javascripts/twitter_gitter.js') 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,'$1').replace(/(^|\s)@(\w+)/g,'$1@$2').replace(/(^|\s)#(\w+)/g,'$1#$2'); + return text.replace(/(https?:\/\/\S+)/gi,'$1').replace(/(^|\s)@(\w+)/g,'$1@$2').replace(/(^|\s)#(\w+)/g,'$1#$2'); } }); - - + + -- cgit v1.2.1