2createStudio/postcss-sprites

Issue with "getImageUrl" function

abczdefg opened this issue · 0 comments

Hi, the plugin is quite helpful. But I may find a bug in function getImageUrl, about the regular expression /url(?:\(['"]?)(.*?)(?:['"]?\))/gi.

It can't match the background file that include brackets in file name, because of its ungreedy matches.
image 8