Skip to content

Commit

Permalink
KanbanHelper update parsing for #23
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jun 10, 2021
1 parent 5284b8e commit a37b067
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
Expand Down Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"1.6.11": "0.12.0"
"1.6.12": "0.12.0"
}

0 comments on commit a37b067

Please sign in to comment.