Skip to content

Commit

Permalink
Revert "Unnecessary character escapes were removed '\$'"
Browse files Browse the repository at this point in the history
This reverts commit c95b953.
  • Loading branch information
Light13008 committed Oct 7, 2024
1 parent c95b953 commit caacdd9
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 caacdd9

Please sign in to comment.