diff --git a/manifest.json b/manifest.json index 875d051..fcb6306 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "metaedit", "name": "MetaEdit", - "version": "1.6.11", + "version": "1.6.12", "minAppVersion": "0.12.0", "description": "MetaEdit helps you manage your metadata.", "author": "Christian B. B. Houmann", diff --git a/package.json b/package.json index 63b9e53..e0cc5c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metaedit", - "version": "1.6.11", + "version": "1.6.12", "description": "MetaEdit helps you manage your metadata.", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 914f5a4..2a54704 100644 --- a/src/main.ts +++ b/src/main.ts @@ -189,7 +189,7 @@ export default class MetaEdit extends Plugin { if (linkFile instanceof TFile) { const headingAttempt1 = this.getTaskHeading(linkFile.path.replace('.md', ''), fileContent); const headingAttempt2 = this.getTaskHeading(link.link, fileContent); - const heading = headingAttempt1 || headingAttempt2; + const heading = headingAttempt1 ?? headingAttempt2; if (!heading) { this.logError("could not open linked file (KanbanHelper)"); @@ -221,7 +221,7 @@ export default class MetaEdit extends Plugin { } const taskMatch = TASK_REGEX.exec(line); - if (taskMatch && taskMatch[3] === `[[${taskName}]]`) { + if (taskMatch && taskMatch[3].includes(`${taskName}`)) { return lastHeading; } } diff --git a/versions.json b/versions.json index d7c7794..ce4afb0 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "1.6.11": "0.12.0" + "1.6.12": "0.12.0" }