Skip to content

Commit

Permalink
improved readability
Browse files Browse the repository at this point in the history
removed the unnecessary escape characters
  • Loading branch information
rishabhr4 committed Oct 8, 2024
1 parent 2feefdc commit b5ae112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/generator/lib/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b5ae112

Please sign in to comment.