Skip to content

Commit

Permalink
chore(constants): remove case insensitive modifier from formats with …
Browse files Browse the repository at this point in the history
…no words
  • Loading branch information
benjamin-awd committed Sep 2, 2024
1 parent 306b60b commit 26957b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/monopoly/constants/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
class DateFormats(StrEnum):
"""Holds a case-insensitive list of common ISO 8601 date formats"""

D = r"(?i:1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)"
DD = r"(?i:01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)"
M = r"(?i:1|2|3|4|5|6|7|8|9|10|11|12)"
MM = r"(?i:01|02|03|04|05|06|07|08|09|10|11|12)"
D = r"(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)"
DD = r"(01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)"
M = r"(1|2|3|4|5|6|7|8|9|10|11|12)"
MM = r"(01|02|03|04|05|06|07|08|09|10|11|12)"
MMM = r"(?i:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"
MMMM = r"(?i:January|February|March|April|May|June|July|August|September|October|November|December)"
YY = r"(?i:[2-5][0-9]\b)"
YYYY = r"(?i:20\d{2}\b)"
YY = r"([2-5][0-9]\b)"
YYYY = r"(20\d{2}\b)"


class ISO8601(RegexEnum):
Expand Down

0 comments on commit 26957b8

Please sign in to comment.