mirror of
https://github.com/taskgenius/taskgenius-plugin.git
synced 2026-07-22 06:40:25 +00:00
fix: cancel date goes before task content
This commit is contained in:
parent
9109c07d28
commit
8b48e6a25b
1 changed files with 3 additions and 1 deletions
|
|
@ -672,7 +672,9 @@ function findMetadataInsertPosition(
|
|||
const blockRef = detectBlockReference(lineText);
|
||||
|
||||
// Find the end of the task content, right after the task description
|
||||
const taskMatch = lineText.match(/^[\s|\t]*([-*+]|\d+\.)\s\[.\]\s*/);
|
||||
const taskMatch = lineText.match(
|
||||
/^[\s|\t]*([-*+]|\d+\.)\s\[(.)\]\s*([^#\[📅🚀✅❌🛫▶️⏰🏁]*)/
|
||||
);
|
||||
if (!taskMatch) return blockRef ? blockRef.index : lineText.length;
|
||||
|
||||
let position = taskMatch[0].length;
|
||||
|
|
|
|||
Loading…
Reference in a new issue