mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #254
This commit is contained in:
parent
0959c9714e
commit
12ae61a328
@ -174,4 +174,4 @@ def sanitize_file_name(name):
|
|||||||
Also remove path separators. ALl illegal characters are replaced by
|
Also remove path separators. ALl illegal characters are replaced by
|
||||||
underscores.
|
underscores.
|
||||||
'''
|
'''
|
||||||
return re.sub(r'[\|\~\:\?\\\/]|^-', '_', name.strip())
|
return re.sub(r'\s', ' ', re.sub(r'[\|\~\:\?\\\/]|^-', '_', name.strip()))
|
Loading…
x
Reference in New Issue
Block a user