lity icon indicating copy to clipboard operation
lity copied to clipboard

imageRegexp optimization

Open visioncode opened this issue 6 years ago • 0 comments

I'm using lity for dynamic images like this:

example.com/files?path=products/abc.jpg

to prevent caching at some pages, I'm using:

example.com/files?path=products/abc.jpg&rand=239923

I noticed, that my images are not interpreted as images then. Please add "&" to the imageRegExp, to handle this cases:

var _imageRegexp = /(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)([\?|&]\S*)?$)/i;

visioncode avatar Aug 16 '19 07:08 visioncode