Skip to content

Commit acecd5f

Browse files
committed
Don't remove backslash and colon when save_path on windows
1 parent 974bcc6 commit acecd5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎module/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def remove_chars(string, repl):
3636
def save_path(name):
3737
#remove some chars
3838
if os.name == 'nt':
39-
return remove_chars(name, '/\\?%*:|"<>')
39+
return remove_chars(name, '/?%*|"<>')
4040
else:
4141
return remove_chars(name, '/\\"')
4242

0 commit comments

Comments
 (0)