Skip to content

Commit

Permalink
fix: escape wiki link first
Browse files Browse the repository at this point in the history
  • Loading branch information
decaf-dev committed Feb 19, 2024
1 parent a51d418 commit 0c6cd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export default class NoteSplitterPlugin extends Plugin {

let fileName = "";
if (this.settings.useContentAsTitle) {
fileName = escapeInvalidFileNameChars(line);
fileName = removeWikiLinkUrl(fileName);
fileName = escapeInvalidFileNameChars(line);
fileName = trimForFileName(fileName, ".md");
} else {
fileName = `split-note-${Date.now() + i}`;
Expand Down

0 comments on commit 0c6cd5e

Please sign in to comment.