Commit 00df8b45 authored by JC Brand's avatar JC Brand

Bugfix. Check for image extension if image_urls_regex fails

parent 496b070d
......@@ -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');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment