From b5ae11254ac12695ecf401f00ba5ea8523bffe0e Mon Sep 17 00:00:00 2001 From: rishabhr4 <118053976+rishabhr4@users.noreply.github.com> Date: Wed, 9 Oct 2024 03:06:40 +0530 Subject: [PATCH] improved readability removed the unnecessary escape characters --- apps/generator/lib/generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/generator/lib/generator.js b/apps/generator/lib/generator.js index 8a07a5670..f0f072f78 100644 --- a/apps/generator/lib/generator.js +++ b/apps/generator/lib/generator.js @@ -822,7 +822,7 @@ class Generator { filename = filenamify(filename, { replacement: '-', maxLength: 255 }); } - const newFileName = fileName.replace(`\$\$${template}\$\$`, filename); + const newFileName = fileName.replace(`$${template}$`, filename); const targetFile = path.resolve(this.targetDir, relativeBaseDir, newFileName); const relativeTargetFile = path.relative(this.targetDir, targetFile); const shouldOverwriteFile = await this.shouldOverwriteFile(relativeTargetFile);