From aeba097362c10f008e3f01ff837615b43ae1fad4 Mon Sep 17 00:00:00 2001 From: hiro98 Date: Sun, 3 May 2020 10:01:12 +0200 Subject: [PATCH] do not remove tags from titles --- convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert.py b/convert.py index a1d9db5..b2b49f2 100755 --- a/convert.py +++ b/convert.py @@ -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