Filter backtick from filename, closes #37
This commit is contained in:
parent
dd97bdeb47
commit
244f970441
@ -310,7 +310,7 @@ def valid_filename(filename):
|
|||||||
"""
|
"""
|
||||||
result = ''
|
result = ''
|
||||||
for char in filename.strip():
|
for char in filename.strip():
|
||||||
if char in ['*', ':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'', '\"']:
|
if char in ['*', ':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'', '\"', '`']:
|
||||||
if len(char) and not result.endswith('-'):
|
if len(char) and not result.endswith('-'):
|
||||||
result += '-'
|
result += '-'
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user