build(ui-templates): fix svg regexp

This commit is contained in:
Daniel Roe 2024-06-08 11:50:35 +01:00
parent 61c3a2a4cd
commit 957dcc1945
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -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)
}