Codeinwp / Nivo-Lightbox-jQuery

A simple, flexible, responsive, retina-ready jQuery lightbox plugin.
http://dev7studios.com/nivo-lightbox
MIT License
157 stars 87 forks source link

Image with querystrings are not allowed #64

Open pjehan opened 8 years ago

pjehan commented 8 years ago

The image URL check line 128 doesn't allow querystring parameters in the regex. For exemple, I can't use Nivo Lightbox with Facebook images because URLs looks like this one : https://scontent.xx.fbcdn.net/v/t1.0-9/13221712_610481119118936_5921368435802389579_n.jpg?oh=17c9df9c738d5937bda95868aa0b4d0c&oe=5808CDA3

pjehan commented 8 years ago

Same problem line 164. If I remove the '$' in the Regex, it works again. You might consider using a URL such as this one suggested on stackoverflow.