Skip to content

Commit

Permalink
fix: mac window 统一文件名处理
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 committed Jan 13, 2022
1 parent 9ab9a1a commit be5e0c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions JumpServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def __init__(self, data):
@staticmethod
def get_filename(data):
filename = data.get('filename', 'jms')
if platform.system().lower() == 'windows':
filename = re.sub(r'[<>/\\|:"*? ]*', '', filename)
filename = re.sub(r'[<>/\\|:"*? ]*', '', filename)
return filename

def handle_ssh(self):
Expand Down

0 comments on commit be5e0c9

Please sign in to comment.