Revert "fixed issue 2 hashes in urls"

This reverts commit 4be25d8815.
This commit is contained in:
Samuel Reis 2010-09-20 22:21:07 +02:00
parent 4be25d8815
commit 00e3f2a02a
172 changed files with 6 additions and 7952 deletions

View file

@ -311,8 +311,8 @@ function replaceURLWithHTMLLinks(text) {
}
function replaceTwitterLinks(text) {
var username = /(^|[^\/\w])(@)([-A-Z0-9+_\.ÅÖÄÜ]+[^\.,;\W])/ig;
var hash = /(^|[^\/\w])(#)([-A-Z0-9+_\.ÅÖÄÜß]+[^\.,;\W])/ig;
var username = /(^|\W)(@)([-A-Z0-9+_\.ÅÖÄÜ]+[^\.,;\W])/ig;
var hash = /(^|\W)(#)([-A-Z0-9+_\.ÅÖÄÜß]+[^\.,;\W])/ig;
text = text.replace(username, "$1$2<a href='http://twitter.com/$3'>$3</a>");
return text.replace(hash, "$1$2<a href='http://search.twitter.com/search?q=%23$3'>$3</a>");
}
@ -329,4 +329,4 @@ function loadPlugin(url) {
}
var twittia_instance;
var twittia_instance;