mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
build(ui-templates): fix svg regexp
This commit is contained in:
parent
61c3a2a4cd
commit
957dcc1945
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user