we should still catch :trailing if there's nothing after :

This commit is contained in:
jesopo 2020-03-23 16:26:21 +00:00
parent a7974f9e98
commit a76df71774
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ def tokenise(line: str) -> Line:
tags[key] = None
line_obj.tags = tags
line, _, trailing = line.partition(" :")
line, trailing_sep, trailing = line.partition(" :")
params = list(filter(bool, line.split(" ")))
if params[0][0] == ":":
@ -123,7 +123,7 @@ def tokenise(line: str) -> Line:
line_obj.command = params.pop(0).upper()
if trailing:
if trailing_sep:
params.append(trailing)
line_obj.params = params