Skip to content

Commit a37b067

Browse files
committed
KanbanHelper update parsing for #23
1 parent 5284b8e commit a37b067

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "metaedit",
33
"name": "MetaEdit",
4-
"version": "1.6.11",
4+
"version": "1.6.12",
55
"minAppVersion": "0.12.0",
66
"description": "MetaEdit helps you manage your metadata.",
77
"author": "Christian B. B. Houmann",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metaedit",
3-
"version": "1.6.11",
3+
"version": "1.6.12",
44
"description": "MetaEdit helps you manage your metadata.",
55
"main": "main.js",
66
"scripts": {

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default class MetaEdit extends Plugin {
189189
if (linkFile instanceof TFile) {
190190
const headingAttempt1 = this.getTaskHeading(linkFile.path.replace('.md', ''), fileContent);
191191
const headingAttempt2 = this.getTaskHeading(link.link, fileContent);
192-
const heading = headingAttempt1 || headingAttempt2;
192+
const heading = headingAttempt1 ?? headingAttempt2;
193193

194194
if (!heading) {
195195
this.logError("could not open linked file (KanbanHelper)");
@@ -221,7 +221,7 @@ export default class MetaEdit extends Plugin {
221221
}
222222

223223
const taskMatch = TASK_REGEX.exec(line);
224-
if (taskMatch && taskMatch[3] === `[[${taskName}]]`) {
224+
if (taskMatch && taskMatch[3].includes(`${taskName}`)) {
225225
return lastHeading;
226226
}
227227
}

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"1.6.11": "0.12.0"
2+
"1.6.12": "0.12.0"
33
}

0 commit comments

Comments
 (0)