fix error parsing string containing '=' characters

This commit is contained in:
Pavel Muhortov 2023-08-20 10:23:13 +03:00
parent 540ddbe0a0
commit 090c4f70dc

View File

@ -145,7 +145,7 @@ class Parse:
for line in strings.replace('\n', ';').split(';'): for line in strings.replace('\n', ';').split(';'):
if not line.lstrip().startswith('#') and "=" in line: if not line.lstrip().startswith('#') and "=" in line:
dictionary[line.split('=')[0].strip()] = ( dictionary[line.split('=')[0].strip()] = (
line.split('=')[1].strip().split(';')[0].strip() line.split('=', maxsplit=1)[1].strip().split(';')[0].strip()
) )
return dictionary return dictionary