Skip to content

Commit

Permalink
[Bug] regex str bugs in replacing backslash 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
leVirve committed Jul 26, 2016
1 parent c203082 commit be56baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcard/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _gen_filepath(self, meta, url):
return filepath

def _gen_full_folder(self, meta):
safe_title = re.sub('[\?\\/><:"|\*.]', '', meta['title']).strip()
safe_title = re.sub('[\?\\\\/><:"|\*]', '', meta['title']).strip()
meta['folder_name'] = safe_title
folder = self.subfolder_pattern.format(**meta)
return self.resources_folder + '/' + folder
Expand Down

0 comments on commit be56baa

Please sign in to comment.