From 768f05d539a8532f18e0058cf4fa50a49c332329 Mon Sep 17 00:00:00 2001 From: Viv Date: Sat, 10 Feb 2024 18:11:49 -0500 Subject: [PATCH] `parsers.py`: Allow lowercase COURSE names --- src/tja2fumen/parsers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tja2fumen/parsers.py b/src/tja2fumen/parsers.py index 8bdaeef..1f04d89 100644 --- a/src/tja2fumen/parsers.py +++ b/src/tja2fumen/parsers.py @@ -101,6 +101,7 @@ def split_tja_lines_into_courses(lines: List[str]) -> TJASong: # Course-specific metadata fields if name_upper == 'COURSE': + value = value.lower().capitalize() # coerce hard/HARD -> Hard if value not in NORMALIZE_COURSE: raise ValueError(f"Invalid COURSE value: '{value}'") current_course = NORMALIZE_COURSE[value]