Skip to content

Commit df9d891

Browse files
committed
Replacing title characters(2)
1 parent 72e9e05 commit df9d891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botcity/web/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ def print_pdf(self, path=None, print_options=None):
10671067
str: the saved file path
10681068
"""
10691069
title = self.page_title() or "document"
1070-
title = re.sub('[\\\\|\/:–]', "", title)
1070+
title = re.sub("[\\\\|/:–]", "", title)
10711071
timeout = 60000
10721072
default_path = os.path.expanduser(os.path.join(self.download_folder_path, f"{title}.pdf"))
10731073

0 commit comments

Comments
 (0)