From 82754301c7c066efb26f8108fa444779b2245cf4 Mon Sep 17 00:00:00 2001 From: Viv Date: Sat, 10 Feb 2024 18:12:44 -0500 Subject: [PATCH] `parsers.py`: Allow lowercase command names --- src/tja2fumen/parsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tja2fumen/parsers.py b/src/tja2fumen/parsers.py index e9ef6be..852c59c 100644 --- a/src/tja2fumen/parsers.py +++ b/src/tja2fumen/parsers.py @@ -215,9 +215,9 @@ def parse_tja_course_data(data: List[str]) -> Dict[str, List[TJAMeasure]]: for idx_l, line in enumerate(data): # 0. Check to see whether line is a command or note data command, name, value, note_data = '', '', '', '' - match_command = re.match(r"^#([A-Z]+)(?:\s+(.+))?", line) + match_command = re.match(r"^#([a-zA-Z0-9]+)(?:\s+(.+))?", line) if match_command: - command = match_command.group(1) + command = match_command.group(1).upper() if match_command.group(2): value = match_command.group(2) else: