PlainTasks icon indicating copy to clipboard operation
PlainTasks copied to clipboard

Scope Syntax Clarification

Open oliverwilliams84 opened this issue 8 years ago • 1 comments

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.

oliverwilliams84 avatar May 12 '17 22:05 oliverwilliams84

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.

vovkkk avatar May 13 '17 05:05 vovkkk