Skip to content

Commit

Permalink
fix #45: only locate files that fully match the link name
Browse files Browse the repository at this point in the history
  • Loading branch information
hepabolu committed Aug 13, 2022
1 parent 41edf3b commit 7cbc207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/automators/onFileModifyAutomators/kanbanHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class KanbanHelper extends OnFileModifyAutomator {

private getLinkFile(link: LinkCache): TFile {
const markdownFiles: TFile[] = this.app.vault.getMarkdownFiles();
return markdownFiles.find(f => f.path.includes(`${link.link}.md`));
return markdownFiles.find(f => f.path.includes(`\/${link.link}.md`));
}

private async updateFilesInBoard(links: LinkCache[], board: KanbanProperty, kanbanBoardFileContent: string) {
Expand Down

0 comments on commit 7cbc207

Please sign in to comment.