Bugfix. Check for image extension if image_urls_regex fails
This commit is contained in:
parent
496b070d2a
commit
00df8b45fd
@ -81,7 +81,7 @@ u.isURLWithImageExtension = url => checkFileTypes(['.jpg', '.jpeg', '.png', '.gi
|
|||||||
|
|
||||||
u.isImageURL = url => {
|
u.isImageURL = url => {
|
||||||
const regex = api.settings.get('image_urls_regex');
|
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 => {
|
u.isImageDomainAllowed = url => {
|
||||||
const show_images_inline = api.settings.get('show_images_inline');
|
const show_images_inline = api.settings.get('show_images_inline');
|
||||||
|
Loading…
Reference in New Issue
Block a user