Permalink
Browse files

searching posts: jQuery (naive) formatting for topics (#topic)

  • Loading branch information...
1 parent 57a4857 commit 3da8b2ecb8021fd9ba6e40afde85c5c6402ac115 @garu committed Jun 14, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 tweetylicious.pl
View
@@ -590,7 +590,8 @@ package main;
// formatting our content
$(".what").each(function() {
var message = $(this).html()
- .replace(/@(\w+)/g, "@<a href=\"/$1\">$1</a>");
+ .replace(/@(\w+)/g, "@<a href=\"/$1\">$1</a>")
+ .replace(/#(\w+)/g, "<a href=\"/search?query=%23$1\">#$1</a>");
$(this).html(message);
});
});

0 comments on commit 3da8b2e

Please sign in to comment.