postcss-sprites icon indicating copy to clipboard operation
postcss-sprites copied to clipboard

Issue with "getImageUrl" function

Open abczdefg opened this issue 6 years ago • 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

abczdefg avatar May 31 '18 02:05 abczdefg