Skip to content

Commit 3adf4de

Browse files
authored
fix the detection of republican month names (#85)
1 parent b8302a3 commit 3adf4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

legi/fr_calendar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def convert_date_to_iso(jour, mois, annee):
5151
if not jour or not mois or not annee:
5252
return None, 'gregorian'
5353
jour = int(jour.lower().replace('1er', '1'))
54-
if mois in MOIS_REPU_MAP:
54+
if strip_down(mois) in MOIS_REPU_MAP:
5555
annee = strip_prefix(annee, 'an ')
5656
return republican_to_gregorian(annee, mois, jour).isoformat(), 'republican'
5757
else:

0 commit comments

Comments
 (0)