Skip to content

Commit

Permalink
fixed issue with spaces in rename
Browse files Browse the repository at this point in the history
  • Loading branch information
WissamAntoun committed Jul 1, 2020
1 parent 8b4b739 commit adfad82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_valid_filename(s):
Copyright (c) Django Software Foundation and individual contributors.
All rights reserved.
"""
return re.sub(r'(?u)[^-\w.]', '', s)
return re.sub(r'(?u)[^-\w. ]', '', s)

#%%
all_files_names = glob.glob("C:\\Users\\WISSAM-PC\\Downloads\\Documents\\*.pdf")
Expand Down

0 comments on commit adfad82

Please sign in to comment.