1
0
mirror of synced 2024-11-24 05:30:11 +01:00

parsers.py: Allow lowercase metadata

Fixes https://github.com/vivaria/tja2fumen/issues/62.
This commit is contained in:
Viv 2024-02-10 18:12:04 -05:00
parent 768f05d539
commit 4e976eec28

View File

@ -91,7 +91,7 @@ def split_tja_lines_into_courses(lines: List[str]) -> TJASong:
current_course_basename = '' current_course_basename = ''
for line in lines: for line in lines:
# Only metadata and #START commands are relevant for this function # Only metadata and #START commands are relevant for this function
match_metadata = re.match(r"^([A-Z0-9]+):(.*)", line) match_metadata = re.match(r"^([a-zA-Z0-9]+):(.*)", line)
match_start = re.match(r"^#START(?:\s+(.+))?", line) match_start = re.match(r"^#START(?:\s+(.+))?", line)
# Case 1: Metadata lines # Case 1: Metadata lines