do not remove tags from titles

This commit is contained in:
hiro98 2020-05-03 10:01:12 +02:00
parent d01516f69b
commit aeba097362

View file

@ -192,9 +192,9 @@ def convert_wunderlist_person(person):
def convert_wunderlist_title(title):
tag_re = re.compile(r"#(.*?(?:\s|$))", re.MULTILINE)
tag_re = re.compile(r"#(.*?(?:\s+|$))", re.MULTILINE)
tags = [tag[:-1] for tag in tag_re.findall(title)]
title = tag_re.sub("", title)
title = tag_re.sub(r"\1", title)
return title, tags