Skip to content

Commit

Permalink
update kanban
Browse files Browse the repository at this point in the history
  • Loading branch information
obgnail committed Sep 14, 2023
1 parent 5a985f6 commit 9771f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/custom/plugins/kanban.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class kanbanPlugin extends BaseCustomPlugin {
}
}

// TASK_COLOR or KANBAN_COLOR
// type: TASK_COLOR/KANBAN_COLOR
getColor = (type, idx) => {
idx %= this.config[type].length;
return this.config[type][idx]
Expand All @@ -131,7 +131,7 @@ class kanbanPlugin extends BaseCustomPlugin {
const title = match.groups.title;
if (title) {
const last = kanban.list[kanban.list.length - 1];
const desc = (match.groups.desc || "").replace(/\\n/g, "\n");
const desc = (match.groups.desc || "").replace(/\\n/g, "\n").replace(/\\r/g, "\r").replace(/\\t/g, "\t");
last && last.item.push({title, desc});
}
}
Expand Down

0 comments on commit 9771f84

Please sign in to comment.