SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit ea452294 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Repair regexes

parent 24ed82f0
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ class FourDigitYearConverter:
class TwoDigitMonthConverter:
regex = '(0[1-9]{1})|(1[1-2]{1})'
regex = '0[1-9]|1[0-2]'
def to_python(self, value):
return int(value)
......@@ -30,7 +30,7 @@ class TwoDigitMonthConverter:
class TwoDigitDayConverter:
regex = '([0-2]{1}[1-9])|30|31'
regex = '0[1-9]|[1-2][0-9]|3[0-1]'
def to_python(self, value):
return int(value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment