mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
tighten up key/value split
This commit is contained in:
@ -367,7 +367,7 @@ def parse(
|
||||
|
||||
# key/value lines
|
||||
if ' : ' in line:
|
||||
key, value = line.split(' : ')
|
||||
key, value = line.split(' : ', maxsplit=1)
|
||||
key = key.strip().lower().replace(' ', '_')
|
||||
value = value.strip()
|
||||
raw_output[key] = value
|
||||
|
Reference in New Issue
Block a user