1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

make splitting more robust

This commit is contained in:
Kelly Brazil
2020-03-11 15:40:34 -07:00
parent 400f5a44ec
commit 9a012b94e1

View File

@ -105,7 +105,7 @@ def parse(data, raw=False, quiet=False):
warned = False
for line in filter(None, data.splitlines()):
linedata = line.rsplit(':', maxsplit=1)
linedata = line.rsplit(': ', maxsplit=1)
try:
filename = linedata[0].strip()