+ Add Question

Bug: Todoist wrongly complains about an unmatched paranthesis

AB

Searching for "(no due date, over due, today)" results in this error message:

SyntaxError: Invalid regular expression: /today)/: Unmatched ')'

Obviously, the paranthesis is matched correctly.

All responses

David Trey staff
Replied on Jul 14, 2013 - 17:48

Hello Alex,

Multiple date-based searches may not require the use of parentheses, therefore, the correct query in this case is:

no date, overdue, today

or a shorter version:

no date, od, tod


Best regards,
David

AB
Alex Bepple premium
Replied on Jul 15, 2013 - 00:44

Of course, David. You are right. This is not a real use case.

But it is a weird error message nonetheless. Because, obviously, the paranthesis is matched correctly.

As a developer, this would make me wonder whether I have reached the limits of using regexes for parsing search queries and consider syntax trees.

I also suspect that the other weirdness (Boolean operators not being commutative) is related to using regexes.

http://todoist.com/Support/showQuestion/5689/#comment_17240

David Trey staff
Replied on Jul 15, 2013 - 06:35

Alex,

We'll certainly consider it in future updates. We've changed our search very recently. In the past, boolean operators were not available, it was not possible to search for any word without using q: and we haven't implemented stemming.

Now, all that is possible, but of course introduces a lot of complexity to it, but we'll surely improve it in future updates.


Best regards,
David