Commit 1bb16d5b authored by Bram Schoenmakers's avatar Bram Schoenmakers

Remove tags with more precision from the source string.

parent c74e844c
......@@ -98,7 +98,7 @@ class TodoBase(object):
# when value == "", match any value having key p_key
value = p_value if p_value != "" else r'\S+'
self.src = re.sub(r'\s?' + p_key + ':' + value, '', self.src)
self.src = re.sub(r'\s?\b' + p_key + ':' + value + r'\b', '', self.src)
def set_priority(self, p_priority):
"""
......
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