PlainTasks
PlainTasks copied to clipboard
Scope Syntax Clarification
Can someone confirm to me what the scope syntax's such as
^\s*(?:(\+|✓|✔|☑|√|\[x\])(\s+(?:[^\@\n]|(?<!\s)\@|\@(?=\s))*)([^\n]*))|^\s*(?:(-)(\s+(?:[^\@]|(?<!\s)\@|\@(?=\s))*)(.*\@done(?=\s|\(|$)[^\n]*))
and
^\s*(?:(✘|x|\[-\])(\s+(?:[^\@\n]|(?<!\s)\@|\@(?=\s))*)(.*))|^\s*(?:(-)(\s+(?:[^\@]|(?<!\s)\@|\@(?=\s))*)(.*\@cancelled(?=\s|\(|$)[^\n]*)) ?
If you look at this you can see that the regex is matching the first tag after the X rather than the completed tag. Is this the expected outcome or ? The whole thing is a clusterfuck of regex.
Please, restrain from from dropping f-bombs here.
Is this the expected outcome or ?
Yes, because task may be without done tag
✘ Test @test
Also, task may be
- Test @test @cancelled(aa(t)) (12-05-17 23:12) aaata
in this case @cancelled is mandatory, because otherwise it would be a pending task.