I noticed that only the first paint(something) was picked up out of my css, where I had created more than one different paint class. Adding a g to the regex from escapePaintRules seems to fix this issue for me:
function escapePaintRules(css) {
return css.replace(/(;|,|\b)paint\s*\(\s*(['"]?)(.+?)\2\s*\)(;|,|!|\b)/g, '$1url(data:image/paint-$3,=)$4');
}
Hi,
I noticed that only the first
paint(something)
was picked up out of my css, where I had created more than one different paint class. Adding ag
to the regex fromescapePaintRules
seems to fix this issue for me: