From 957dcc1945e80e6dcdbb8c4917752d97e3f854d7 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 8 Jun 2024 11:50:35 +0100 Subject: [PATCH] build(ui-templates): fix svg regexp --- packages/ui-templates/lib/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }