You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When there is a link in a task description the link and all text after it is removed when dragging the task to a new time. It also doesn't appear in the planner view.
To Reproduce
Steps to reproduce the behavior:
Add a task with a link such as "go [[here]] for more info"
In the planner notice it will only display "go"
Drag the task to a new time
The original task now reads "go" with no link or text after
Expected behavior
Links appear in planner and are not stripped from the task when it is moved.
The text was updated successfully, but these errors were encountered:
Hey @gypsyav this is unfortunately not reproducible with the steps you provided.
But I reproduced the behavior with additional information:
As long as the task does not end with something like [completion:: 2024-06-12] as done when checking the box with the Tasks plugin enabled, it seems to work fine. To be precise whenever the regex"\[.*::.*\]"gm appears anywhere in the text, only the text before the first bracket is recognized.
This is probably caused by line 40 in src/regexp.ts:
export const propRegexp = /[(.+)::(.*)]/g;
Which is used by line 17-19 in src/util/properties.ts:
export function deleteProps(line: string) {
return line.replaceAll(propRegexp, "").trim();
}
@ivan-lednev As I am not a typescript expert I am not confident enough to fix it myself...
Describe the bug
When there is a link in a task description the link and all text after it is removed when dragging the task to a new time. It also doesn't appear in the planner view.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Links appear in planner and are not stripped from the task when it is moved.
The text was updated successfully, but these errors were encountered: