From 7182a25c282b28149146bf7007171619dac5f5e1 Mon Sep 17 00:00:00 2001 From: Samuel Reis Date: Tue, 21 Sep 2010 20:28:33 +0200 Subject: [PATCH] fix @user and #hash again --- TwittiaCore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TwittiaCore.js b/TwittiaCore.js index 55535d5..2ca4780 100644 --- a/TwittiaCore.js +++ b/TwittiaCore.js @@ -312,8 +312,8 @@ function replaceURLWithHTMLLinks(text) { } function replaceTwitterLinks(text) { - var username = /(^|\s)(@)(\w*)/ig; - var hash = /(^|\s)(#)(\w*)/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"); }