Skip to content

Commit

Permalink
Update post-process.js
Browse files Browse the repository at this point in the history
  • Loading branch information
joethei authored Feb 21, 2024
1 parent 6d0cd63 commit 7d990d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/post-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function renameFiles(folderPath) {

// Step 2: Remove all "obsidian." prefixes
if (file.startsWith('obsidian.') && file.endsWith('.md')) {
const newFileName = file.replace('obsidian.', '').replace('Plugin_2', 'Plugin');
const newFileName = file.replace('obsidian.', '').replace('Plugin_2', 'Plugin').replaceAll('Plugin\_2', 'Plugin');
const oldFilePath = path.join(folderPath, file);
const newFilePath = path.join(folderPath, newFileName);

Expand Down

0 comments on commit 7d990d8

Please sign in to comment.