diff --git a/config/post-process.js b/config/post-process.js index fcfbe7c5..8f6dc89e 100644 --- a/config/post-process.js +++ b/config/post-process.js @@ -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);