Filter another illegal filename character
This commit is contained in:
parent
d07b44058e
commit
34adf23dd1
@ -146,7 +146,8 @@ def list_issues(gitserver, options):
|
|||||||
Lists all issues for options['issues']
|
Lists all issues for options['issues']
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
for issue in gitserver.project_issues.list(project_id=options['issues'], per_page=99):
|
for issue in gitserver.project_issues.list(project_id=options['issues'],
|
||||||
|
per_page=99):
|
||||||
if issue.state == 'closed' and not options['closed']:
|
if issue.state == 'closed' and not options['closed']:
|
||||||
continue
|
continue
|
||||||
if 'finding' in issue.labels:
|
if 'finding' in issue.labels:
|
||||||
@ -251,7 +252,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