Closed
Description
Currently the parser accepts the following datemath expressions (and just returns "now" in UTC):
+1ö
+1ä
+1ü
+1ß
+1,
+1.
Expected behavior: Error message "Not a valid timeunit: "
I debugged the code to check why this is happening. It seems you are using the regular expression [a-zA-Z] to validate the character before beginning to calculate the date. Unfortunatley this leads to just leaving the while loop in helper.py
without any further processing (or error handling):
Kind regards
Oliver