Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Matching full image src #72

Open
mihalache opened this issue Oct 20, 2016 · 0 comments
Open

Matching full image src #72

mihalache opened this issue Oct 20, 2016 · 0 comments

Comments

@mihalache
Copy link

There is a problem matching the full image src attribute. The href.match(/\.(jpeg|jpg|gif|png)$/i) does not match urls with get parameters like http://domain.com/image.jpg?getParam=43251.

This is a problem especially in Drupal where a GET param is used to resize images and the url provided by Drupal has always this param at the end (see image_style_url() function).

@mihalache mihalache changed the title Matching full image Matching full image src Oct 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant