function extractURL(value) {
  const urlStart = value.indexOf("url(");
  if (urlStart === -1) return null;
  let url = value.slice(urlStart + 4).trim(); // Remove "url("
  if (url.endsWith(")")) url = url.slice(0, -1).trim(); // Remove trailing ")"
  if ((url.startsWith('"') && url.endsWith('"')) || (url.startsWith("'") && url.endsWith("'"))) {
    url = url.slice(1, -1);
  }
  return url;
}
Extracts a URL from a CSS value like background-image.

@param {string} value - The CSS value
@returns {string|null} The extracted URL or null