Commits

Robert Tolliver committed 486d5cf Draft

Fixed having two decade_re and no century_re.

  • Participants
  • Parent commits 2fd0032

Comments (0)

Files changed (1)

djutils/features/fuzzydate/forms.py

 	"""e.g. 2012d 201[0]"""
 	decade_re = re.compile('^(?:(\d{3})\[(\d)\])|(?:(\d{4})d)$', re.I)
 	"""e.g. 2000c 20[00]"""
-	decade_re = re.compile('^(?:(\d{2})\[(\d{2})\])|(?:(\d{4})c)$', re.I)
+	century_re = re.compile('^(?:(\d{2})\[(\d{2})\])|(?:(\d{4})c)$', re.I)
 
 	FORMAT_STRINGS = {
 		DatePrecision.month: ['%m/%Y', '%Y/%m', '%Y-%m', '%m-%Y'],