+ Add Question

Bug: Todoist wrongly complains about an unmatched paranthesis

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 - 22:48 UTC

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,

Alex Bepple  premium
Replied on Jul 15, 2013 - 05:44 UTC

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.


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


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,