Remove extra double quotes at the end of background-image: url() #98

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
2 participants

when using double quotes for the image path

Image

Owner

LeaVerou commented Aug 2, 2012

Hi!

Thanks for spotting the bug, but this is not the right way to fix it. The right way to fix it is to avoid matching the quotes in the first place.

The funny thing is that it only happens in the minified version. I'll check into it

Vlad Zinculescu added some commits Aug 3, 2012

OK. So it turns out that the minified version uses this regex
/url(('?|"?)(.+?)\1)/gi
and the uncompresed uses:
/url(\s_?((?:"|')?)(.+?)\1\s_?)/gi

I suggest an update of the minified version

Owner

LeaVerou commented Jan 5, 2016

I guess the minified version has now been updated, so I'm closing this.

LeaVerou closed this Jan 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment