|
@@ -72,7 +72,7 @@ class default_1 {
|
|
|
}
|
|
|
logger.warn('unable to find MIME type of fetched media, failing this fetch');
|
|
|
throw Error();
|
|
|
- })((_a = /([^\/]*)\?format=([a-z]+)&/.exec(url)) !== null && _a !== void 0 ? _a : /([^\/]*)\.([^?]+)/.exec(url));
|
|
|
+ })((_a = /([^/]*)\?format=([a-z]+)&/.exec(url)) !== null && _a !== void 0 ? _a : /.*\/([^/]*)\.([^?]+)/.exec(url));
|
|
|
});
|
|
|
this.uploadMediaItems = (tweet, fileNamePrefix, indexOffset = 0) => {
|
|
|
const mediaItems = [];
|