fix(graph): properly remove <base> tag when generating static graph file (#23399)

This commit is contained in:
MaxKless 2024-05-15 15:31:48 +02:00 committed by GitHub
parent c4343948ca
commit 5221103242
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -444,7 +444,7 @@ export async function generateGraph(
);
html = html.replace(/src="/g, 'src="static/');
html = html.replace(/href="styles/g, 'href="static/styles');
html = html.replace('<base href="/" />', '');
html = html.replace(/<base href="\/".*>/g, '');
html = html.replace(/type="module"/g, '');
writeFileSync(fullFilePath, html);