From 73bfb72329be26677b1513f041d69ff38fbf6b67 Mon Sep 17 00:00:00 2001 From: Max Kless Date: Wed, 15 May 2024 13:22:03 +0200 Subject: [PATCH] fix(graph): properly remove tag when generating static graph file --- packages/nx/src/command-line/graph/graph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/graph/graph.ts b/packages/nx/src/command-line/graph/graph.ts index 78762c27340ac1..94643d1ee526c4 100644 --- a/packages/nx/src/command-line/graph/graph.ts +++ b/packages/nx/src/command-line/graph/graph.ts @@ -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('', ''); + html = html.replace(//g, ''); html = html.replace(/type="module"/g, ''); writeFileSync(fullFilePath, html);