mirror of
https://github.com/binxly/Atomizer.git
synced 2026-07-22 05:31:35 +00:00
Removal of sanitizeTitle wrapper method, calling normalizePath from obsidian api directly
This commit is contained in:
parent
f10eed259d
commit
9446e682cd
1 changed files with 1 additions and 5 deletions
6
main.ts
6
main.ts
|
|
@ -105,7 +105,7 @@ class NotesManager {
|
|||
}
|
||||
|
||||
const title = this.getUniqueTitle(titleMatch[1].trim());
|
||||
const fileName = `${this.folderPath}/${this.sanitizeTitle(title)}.md`;
|
||||
const fileName = `${this.folderPath}/${normalizePath(title)}.md`;
|
||||
await this.app.vault.create(fileName, note.trim());
|
||||
}
|
||||
|
||||
|
|
@ -116,10 +116,6 @@ class NotesManager {
|
|||
title = `${baseTitle} ${counter}`;
|
||||
counter++;
|
||||
}
|
||||
return this.sanitizeTitle(title);
|
||||
}
|
||||
|
||||
private sanitizeTitle(title: string): string {
|
||||
return normalizePath(title);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue