* src/DateHandler/_DateParser.py (DateParser.init_strings): fix date parsing to allow
for spaces in numerical format. #892 svn: r8037
This commit is contained in:
parent
f96e1bf992
commit
58d12df51a
@ -1,4 +1,6 @@
|
||||
2007-02-03 Don Allingham <don@gramps-project.org>
|
||||
* src/DateHandler/_DateParser.py (DateParser.init_strings): fix date parsing to allow
|
||||
for spaces in numerical format. #892
|
||||
* src/Editors/_EditFamily.py (EditFamily.check_for_family_change): fix
|
||||
warning message.
|
||||
|
||||
|
@ -281,7 +281,7 @@ class DateParser:
|
||||
re.IGNORECASE)
|
||||
self._itext2 = re.compile('(\d+)?\s+?%s\s*((\d+)(/\d+)?)?\s*$' % self._imon_str,
|
||||
re.IGNORECASE)
|
||||
self._numeric = re.compile("((\d+)[/\.])?((\d+)[/\.])?(\d+)\s*$")
|
||||
self._numeric = re.compile("((\d+)[/\.]\s*)?((\d+)[/\.]\s*)?(\d+)\s*$")
|
||||
self._iso = re.compile("(\d+)(/(\d+))?-(\d+)-(\d+)\s*$")
|
||||
self._rfc = re.compile("(%s,)?\s+(\d|\d\d)\s+%s\s+(\d+)\s+\d\d:\d\d(:\d\d)?\s+(\+|-)\d\d\d\d"
|
||||
% (self._rfc_day_str,self._rfc_mon_str))
|
||||
|
Loading…
Reference in New Issue
Block a user