date handler fix

This commit is contained in:
Zdeněk Hataš 2015-06-07 10:54:21 +02:00
parent bfb7f1536b
commit 47cdc1e54d

View File

@ -173,6 +173,8 @@ class DateParserCZ(DateParser):
def init_strings(self):
DateParser.init_strings(self)
self._text2 = re.compile('(\d+)?\.?\s+?%s\.?\s*((\d+)(/\d+)?)?\s*$'
% self._mon_str, re.IGNORECASE)
self._span = re.compile(
"(od)\s+(?P<start>.+)\s+(do)\s+(?P<stop>.+)",
re.IGNORECASE)