This commit is contained in:
powe97 2024-03-06 16:16:36 -06:00
parent 7c87221256
commit 0f3652d8cc
No known key found for this signature in database
GPG Key ID: 7D1663B10978D1BA
1 changed files with 3 additions and 1 deletions

View File

@ -232,7 +232,9 @@ def parse_course_td(td, note=None):
cr_delim = (
len(course_info)
- 1
- list(bool(re.search(r"^\([0-9]", s.strip())) for s in course_info[::-1]).index(True)
- list(
bool(re.search(r"^\([0-9]", s.strip())) for s in course_info[::-1]
).index(True)
)
assert bool(re.search(r"[0-9]\)", course_info[-1]))
except (ValueError, AssertionError):