Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 4c5820bebdb593f250a2a483428ae357f89a6e1a 1 parent d62b355
@nguarracino nguarracino authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libs/spazimageurl.js
View
2  libs/spazimageurl.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.