fix regex

This commit is contained in:
Riley Housden 2022-08-22 15:08:59 -04:00
parent 1004769e80
commit 4ebfa44950

View file

@ -17,7 +17,7 @@ config = load_config()
RE_STRING = re.compile( # https://regex101.com/r/ELsqrO/1 RE_STRING = re.compile( # https://regex101.com/r/ELsqrO/1
r"(L-[0-9]{4}): " # room number (group 1) r"(L-[0-9]{4}): " # room number (group 1)
# time-slot (group 2,3,4 - group 5,6,7) # time-slot (group 2,3,4 - group 5,6,7)
r"([1-12]{1,2}):([0,3]{2})(am|pm) - ([1-12]{1,2}):([0,3]{2})(am|pm), " r"([1-9]{1,2}):([0,3]{2})(am|pm) - ([1-9]{1,2}):([0,3]{2})(am|pm), "
# weekday (group 8) # weekday (group 8)
r"(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), " r"(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), "
# month (group 9) # month (group 9)