Skip to content

Commit

Permalink
Fixed accidental linkifying of XML entities
Browse files Browse the repository at this point in the history
  • Loading branch information
remysharp committed Nov 30, 2009
1 parent a2e0846 commit 26f749b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ify.js
Expand Up @@ -26,7 +26,7 @@ var ify = function() {
});
},
"hash": function(t) {
return t.replace(/(^|[^\w'"]+)\#([a-zA-Z0-9_]+)/g, function(m, m1, m2) {
return t.replace(/(^|[^&\w'"]+)\#([a-zA-Z0-9_]+)/g, function(m, m1, m2) {
return m1 + '#<a href="http://search.twitter.com/search?q=%23' + m2 + '">' + m2 + '</a>';
});
},
Expand Down

0 comments on commit 26f749b

Please sign in to comment.