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): ...@@ -61,7 +61,7 @@ def parse_line(p_string):
if context: if context:
result['contexts'].append(context.group(1)) result['contexts'].append(context.group(1))
tag = re.match('(?P<key>.*):(?P<value>.*)', word) tag = re.match('(?P<key>[^:]*):(?P<value>.*)', word)
if tag: if tag:
result['tags'].append((tag.group('key'), tag.group('value'))) result['tags'].append((tag.group('key'), tag.group('value')))
continue 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