From 8dc84b2f5df1a38cbe217e773361f0a3f8a06329 Mon Sep 17 00:00:00 2001 From: Samuel Reis Date: Tue, 21 Sep 2010 20:25:21 +0200 Subject: [PATCH] fix @user and #hash --- TwittiaCore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TwittiaCore.js b/TwittiaCore.js index 4f2380e..55535d5 100644 --- a/TwittiaCore.js +++ b/TwittiaCore.js @@ -312,8 +312,8 @@ function replaceURLWithHTMLLinks(text) { } function replaceTwitterLinks(text) { - var username = /(^|\s)(@)(\S*)/ig; - var hash = /(^|\s)(#)(\S*)/ig; + var username = /(^|\s)(@)(\w*)/ig; + var hash = /(^|\s)(#)(\w*)/ig; text = text.replace(username, "$1$2$3"); return text.replace(hash, "$1$2$3"); }