diff --git a/knowledge_repo/converters/gdoc.py b/knowledge_repo/converters/gdoc.py index 46f9ee185..9861b0e43 100644 --- a/knowledge_repo/converters/gdoc.py +++ b/knowledge_repo/converters/gdoc.py @@ -79,7 +79,7 @@ def from_file(self, url, download_path=None, **opts): headers = self.kp.headers if 'title' in headers and headers['title'].startswith('[]'): - headers['title'] = re.sub('\[\]\{[^\}]+\}', '', headers['title']) + headers['title'] = re.sub(r'\[\]\{[^\}]+\}', '', headers['title']) if 'subtitle' in headers and headers['subtitle'].startswith('[]'): - headers['subtitle'] = re.sub('\[\]\{[^\}]+\}', '', headers['subtitle']) + headers['subtitle'] = re.sub(r'\[\]\{[^\}]+\}', '', headers['subtitle']) self.kp.update_headers(**headers)