Fixed jpeg jpg substitution.

This commit is contained in:
ThePendulum 2018-05-12 16:29:41 +02:00
parent 6a4cb138fa
commit 9d6882a7c5
1 changed files with 1 additions and 1 deletions

View File

@ -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')
});
}