Commit c74e844c authored by Bram Schoenmakers's avatar Bram Schoenmakers

The key cannot have a : character.

parent b478b294
......@@ -61,7 +61,7 @@ def parse_line(p_string):
if context:
result['contexts'].append(context.group(1))
tag = re.match('(?P<key>.*):(?P<value>.*)', word)
tag = re.match('(?P<key>[^:]*):(?P<value>.*)', word)
if tag:
result['tags'].append((tag.group('key'), tag.group('value')))
continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment