Skip to content

Commit d885b9f

Browse files
committedOct 4, 2018
Fix regex escaping lint.
1 parent 7f644a1 commit d885b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎knowledge_repo/converters/gdoc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def from_file(self, url, download_path=None, **opts):
7979

8080
headers = self.kp.headers
8181
if 'title' in headers and headers['title'].startswith('[]'):
82-
headers['title'] = re.sub('\[\]\{[^\}]+\}', '', headers['title'])
82+
headers['title'] = re.sub(r'\[\]\{[^\}]+\}', '', headers['title'])
8383
if 'subtitle' in headers and headers['subtitle'].startswith('[]'):
84-
headers['subtitle'] = re.sub('\[\]\{[^\}]+\}', '', headers['subtitle'])
84+
headers['subtitle'] = re.sub(r'\[\]\{[^\}]+\}', '', headers['subtitle'])
8585
self.kp.update_headers(**headers)

0 commit comments

Comments
 (0)
Please sign in to comment.