Skip to content

Commit

Permalink
Fix looping bug that presented itself only when tweets contained mult…
Browse files Browse the repository at this point in the history
…iple t.co links (fixes seaofclouds#180)
  • Loading branch information
purcell committed Oct 18, 2011
1 parent 4524a41 commit 36dc4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweet/jquery.tweet.js
Expand Up @@ -79,7 +79,7 @@
return text.replace(url_regexp, function(match) {
var url = (/^[a-z]+:/i).test(match) ? match : "http://"+match;
var text = match;
for(var i = 0; i < entities.length; --i) {
for(var i = 0; i < entities.length; ++i) {
var entity = entities[i];
if (entity.url == url) {
url = entity.expanded_url;
Expand Down

0 comments on commit 36dc4a7

Please sign in to comment.