Bugfix. Check for image extension if image_urls_regex fails

This commit is contained in:
JC Brand 2020-09-02 21:14:50 +02:00
parent 496b070d2a
commit 00df8b45fd

View File

@ -81,7 +81,7 @@ u.isURLWithImageExtension = url => checkFileTypes(['.jpg', '.jpeg', '.png', '.gi
u.isImageURL = url => {
const regex = api.settings.get('image_urls_regex');
return regex ? regex.test(url) : u.isURLWithImageExtension(url);
return regex?.test(url) || u.isURLWithImageExtension(url);
}
u.isImageDomainAllowed = url => {
const show_images_inline = api.settings.get('show_images_inline');