Skip to content

Commit

Permalink
fix the detection of republican month names (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco authored Nov 24, 2021
1 parent b8302a3 commit 3adf4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legi/fr_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def convert_date_to_iso(jour, mois, annee):
if not jour or not mois or not annee:
return None, 'gregorian'
jour = int(jour.lower().replace('1er', '1'))
if mois in MOIS_REPU_MAP:
if strip_down(mois) in MOIS_REPU_MAP:
annee = strip_prefix(annee, 'an ')
return republican_to_gregorian(annee, mois, jour).isoformat(), 'republican'
else:
Expand Down

0 comments on commit 3adf4de

Please # to comment.