From 4455061a5bc13a05b51786d31f9ae470ec30bdc7 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Fri, 10 Jul 2020 18:52:18 -0400 Subject: lps_gen.py: Update LPiCal.__init__ * lps_gen.py (LPiCal.__init__): Merge the two timeslot_re regex strings into one. --- lps_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lps_gen.py b/lps_gen.py index de2c5c2..320bd53 100644 --- a/lps_gen.py +++ b/lps_gen.py @@ -116,7 +116,7 @@ class LPiCal(object): self.lp_year = str(lp_year) # Matches strings like '09:45 - 10:30: Lorem ipsum dolor sit.' - self.timeslot_re = re.compile(r"(\d+:\d+).+?(\d+:\d+)" r"\s*[:-]?\s*(.+\b)?") + self.timeslot_re = re.compile(r"(\d+:\d+).+?(\d+:\d+)\s*[:-]?\s*(.+\b)?") # Matches strings like 'Saturday, March 19' self.month_day_re = re.compile(r"\w+,\s*([a-zA-Z]+)\s*(\d+)") -- cgit v1.2.3