generated from pavel.muhortov/template-bash
fix error parsing string containing '=' characters
This commit is contained in:
parent
540ddbe0a0
commit
090c4f70dc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user