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 977fee8 commit 7b90bbb
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 @@ -49,7 +49,7 @@ cssclasses: hide-title
`+ fileContent;

// Somehow we still get Plugin_2 even if `obsidian.d.ts` doesn't contain any reference to it
newFileContent = newFileContent.replaceAll('Plugin_2', 'Plugin').replaceAll('Plugin\_2', 'Plugin');
newFileContent = newFileContent.replaceAll('obsidian.', '').replaceAll('Plugin_2', 'Plugin').replaceAll('Plugin\_2', 'Plugin');
await fs.writeFile(newFilePath, newFileContent, 'utf-8');
} catch (err) {
console.error(`Error renaming file: ${err.message}`);
Expand Down

0 comments on commit 7b90bbb

Please sign in to comment.