Permalink
Browse files

Some twitpic photos have http://www.twitpic.com instead of the normal h…

  • Loading branch information...
1 parent d62b355 commit 4c5820bebdb593f250a2a483428ae357f89a6e1a @nguarracino nguarracino committed Dec 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/spazimageurl.js
View
@@ -27,7 +27,7 @@ SpazImageURL.prototype.initAPIs = function() {
});
this.addAPI('twitpic', {
- 'url_regex' : new RegExp("http://twitpic.com/([a-zA-Z0-9]+)", "gi"),
+ 'url_regex' : new RegExp("http://(?:www\.)?twitpic.com/([a-zA-Z0-9]+)", "gi"),
'getThumbnailUrl' : function(id) {
var url = 'http://twitpic.com/show/thumb/'+id;
return url;

0 comments on commit 4c5820b

Please sign in to comment.