Permalink
Browse files

Don't convert 'a@foobar' into user links; it's more likely an email. …

…(See #182)
  • Loading branch information...
1 parent 7a82ae8 commit 7ab309249b05e5cca66a51ab7b5199b34f8ce7a7 @purcell purcell committed Oct 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tweet/jquery.tweet.js
View
@@ -66,7 +66,7 @@
}
$.fn.extend({
- linkUser: replacer(/@(\w+)/gi, "@<a href=\"http://"+s.twitter_url+"/$1\">$1</a>"),
+ linkUser: replacer(/(^|[\W])@(\w+)/gi, "$1@<a href=\"http://"+s.twitter_url+"/$2\">$2</a>"),
// Support various latin1 (\u00**) and arabic (\u06**) alphanumeric chars
linkHash: replacer(/(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi,
' <a href="http://'+s.twitter_search_url+'/search?q=&tag=$1&lang=all'+((s.username && s.username.length == 1 && !s.list) ? '&from='+s.username.join("%2BOR%2B") : '')+'">#$1</a>'),

0 comments on commit 7ab3092

Please sign in to comment.