mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
File name cannot end with a dot error
This commit is contained in:
parent
581b273407
commit
ed0421bcd5
2 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "folder-notes",
|
||||
"name": "Folder notes",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.",
|
||||
"author": "Lost Paul",
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ export class Commands {
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (text.endsWith('.')) {
|
||||
new Notice('File name cannot end with a dot');
|
||||
return;
|
||||
}
|
||||
let folder: TAbstractFile | null;
|
||||
const folderPath = this.plugin.getFolderPathFromString(file.path);
|
||||
if (folderPath === '') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue