Fixed jpeg jpg substitution.
This commit is contained in:
parent
b2f9d9f51e
commit
2c58947548
|
@ -64,7 +64,7 @@ function interpolate(pattern, user, post, item) {
|
|||
$itemIndex: item.index + config.library.indexOffset,
|
||||
$extracted: item.extracted ? config.library.booleans.extracted : '',
|
||||
$preview: item.preview ? config.library.booleans.preview : '',
|
||||
$ext: `.${mime.extension(item.type).replace('jpeg', 'jpg') || path.extname(url.parse(item.url).pathname)}`
|
||||
$ext: `.${mime.extension(item.type) || path.extname(url.parse(item.url).pathname)}`.replace('jpeg', 'jpg')
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue