check for brace after commas

This commit is contained in:
Dominik Demuth 2025-01-23 17:47:20 +01:00
parent 41353b9a54
commit ead18d8035

View File

@ -49,7 +49,7 @@ class AsciiReader:
with self.fname.open('r') as f: with self.fname.open('r') as f:
for i, line in enumerate(islice(f, len(self.header)+len(self.lines), num_lines)): for i, line in enumerate(islice(f, len(self.header)+len(self.lines), num_lines)):
line = line.strip('\n\t\r, ') line = line.strip('\n\t\r, ')
line = re.sub(r'[\t ;,]+', ';', line) line = re.sub(r'[\t, ;]+(?!\w*})', ';', line)
line = line.split(';') line = line.split(';')
try: try: