diff options
author | rsiddharth <rsd@gnu.org> | 2020-07-10 18:52:18 -0400 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2020-07-10 18:52:18 -0400 |
commit | 4455061a5bc13a05b51786d31f9ae470ec30bdc7 (patch) | |
tree | 13319736b6f8a602625367f69282df898a28702a | |
parent | ddccb4ca0b5a914f08abb56381fa715854c6585b (diff) |
lps_gen.py: Update LPiCal.__init__
* lps_gen.py (LPiCal.__init__): Merge the two timeslot_re regex
strings into one.
-rw-r--r-- | lps_gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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+)") |