From 2d317043fa0f80b003652b13d1646b01b410c878 Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Fri, 2 Sep 2022 16:38:36 +0200 Subject: [PATCH] update to tokenizer --- tww/tokenizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tww/tokenizer.py b/tww/tokenizer.py index e1c00c9..5f2d841 100644 --- a/tww/tokenizer.py +++ b/tww/tokenizer.py @@ -52,7 +52,7 @@ r_calendar_year = re.compile('(?:cal year|calendar year)\s*(.*)', flags=re.IGNOR r_calendar_month = re.compile('(?:calendar|cal|month|cal month|calendar month)\s*(.*)', flags=re.IGNORECASE) r_timezone_2 = re.compile('(?:timezone in|timezones in|tz in|timezone|timezones|tz)\s(.*)?', flags=re.IGNORECASE) r_timezone_cities = re.compile('(?:cities with timezones|countries with timezones|cities with tz|countries with tz)\s(.*)?', flags=re.IGNORECASE) -r_weeknum = re.compile('(?:week number|week num|weeknum|week)\s(.*)?', flags=re.IGNORECASE) +r_weeknum = re.compile('(?:week number|week num|weeknum|week)', flags=re.IGNORECASE) def handler_time_now_local():