diff --git a/packages/ui-templates/lib/render.ts b/packages/ui-templates/lib/render.ts index 7470459764..c9d5986c4f 100644 --- a/packages/ui-templates/lib/render.ts +++ b/packages/ui-templates/lib/render.ts @@ -54,7 +54,7 @@ export const RenderPlugin = () => { // Inline SVGs const svgSources: string[] = [] - for (const [src] of html.matchAll(/src="([^"]+)"|url([^)]+)/g)) { + for (const [_, src] of html.matchAll(/src="([^"]+)"|url([^)]+)/g)) { if (src?.match(/\.svg$/)) { svgSources.push(src) }