3156: Bug in Croatian DateHandler (patch provided by VPeric)

svn: r12945
This commit is contained in:
Jérôme Rapinat 2009-08-10 14:26:24 +00:00
parent 9d6ddde2d8
commit b6d71f14f7

View File

@ -180,7 +180,7 @@ class DateParserHR(DateParser):
"""
DateParser.init_strings(self)
# match 'Day. MONTH year.' format with or without dots
self._text2 = re.compile('(\d+)?\.?\s+?%s\.?\s*((\d+)(/\d+)?)?\s*\.?$'
self._text2 = re.compile('(\d+)?\.?\s*?%s\.?\s*((\d+)(/\d+)?)?\s*\.?$'
% self._mon_str, re.IGNORECASE)
# match Day.Month.Year.
self._numeric = re.compile(