From 9254a35836b58eb987a4520a901231d3ca059bc0 Mon Sep 17 00:00:00 2001 From: otdoges Date: Sun, 20 Jul 2025 17:12:57 -0500 Subject: [PATCH] Potential fix for code scanning alert no. 38: Incomplete string escaping or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/utils/nextjs-project-generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/nextjs-project-generator.ts b/src/utils/nextjs-project-generator.ts index f7f1f1f8..47b3a374 100644 --- a/src/utils/nextjs-project-generator.ts +++ b/src/utils/nextjs-project-generator.ts @@ -57,7 +57,7 @@ export default function HomePage() {
-            ${code.replace(/`/g, '\\`')}
+            ${code.replace(/\\/g, '\\\\').replace(/`/g, '\\`')}