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.
Asked by Alex Bepple on Jul 14, 2013 - 15:57
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.
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.