hpbuniat/csslint — comment on commit 20eab4736963ecd9c90119a8bd4dd2eab915795d
File: src/rules/duplicate-background-url.js line 24
By nzakas:

Instead of going through this complex regular expression, which might miss multiple URLs on the same line, it would be better to examine each of the value parts. The value.parts array has each part of the value, and you can iterate over those parts and check the type property to see if it's a URI. For example:

if (value.parts[i].type == "uri") {
actualUri = value.parts[i].uri;
}

All of the URL parsing is already done for you, you just need to grab the info.