parent
76c73715fb
commit
a7440261c5
2 changed files with 4 additions and 0 deletions
|
@ -305,6 +305,7 @@ def sanitize_filename(s, restricted=False, is_id=False):
|
|||
result = result[2:]
|
||||
if result.startswith('-'):
|
||||
result = '_' + result[len('-'):]
|
||||
result = result.lstrip('.')
|
||||
if not result:
|
||||
result = '_'
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue