Fix typo leading to bad capitalization

This commit is contained in:
powe97 2024-03-01 15:01:20 -05:00
parent 001825d3dc
commit 6b5356c84f
No known key found for this signature in database
GPG Key ID: 7D1663B10978D1BA
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def raise_(ex):
# Fix course titles accounting for Roman numerals up to X
def normalize_title(input):
s = " ".join(input.split())
s = re.sub(r"[A-Zaz]+('[A-Za-z]+)?", lambda m: m.group(0).capitalize(), s)
s = re.sub(r"[A-Za-z]+('[A-Za-z]+)?", lambda m: m.group(0).capitalize(), s)
s = re.sub(r"\b(Viii|Vii|Vi|Iv|Ix|Iii|Ii)\b", lambda a: a.group(0).upper(), s)
return s.strip()