rlightbox2
rlightbox2 copied to clipboard
Lightbox doesn't work on JPG extension
image:{urls:[/.jpg$|.JPG$|.PNG$|.png$|.gif$/],type:"image"} and problem solved
Thanks. It was solved in testing repo. Unfortunately, rlightbox is not maintained at the moment.
Actually image:{urls:[/.jpe?g$|.png$|.gif$/i],type:"image"} would make more sense as it matches both jpeg and jpg extensions and since the expression has 'i' at the end of it, it would be case insensitive.
I discovered this issue because I tried loading '.jpeg' files and the lightbox wouldn't work. But '.gif' images and '*.jpg' images were working fine. I wanted to report it but I see that was already done. Just thought I'd contribute.