in packages/svg-mixer/runtime/src/utils/update-urls.js [23:33]
function updateReferences(nodes, startsWith, replaceWith) {
arrayFrom(nodes).forEach((node) => {
const href = node.getAttribute(xLinkAttrName);
if (href && href.indexOf(startsWith) === 0) {
const newUrl = href.replace(startsWith, replaceWith);
node.setAttributeNS(xLinkNS, xLinkAttrName, newUrl);
}
});
return nodes;
}