mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 16:53:56 +03:00
Merge branch 'develop' of https://github.com/chideat/you-get into chideat-develop
This commit is contained in:
commit
455e5b90d9
@ -10,6 +10,7 @@ def legitimize(text, os=platform.system()):
|
||||
text = text.translate({
|
||||
0: None,
|
||||
ord('/'): '-',
|
||||
ord('|'): '-',
|
||||
})
|
||||
|
||||
if os == 'Windows':
|
||||
@ -20,7 +21,6 @@ def legitimize(text, os=platform.system()):
|
||||
ord('*'): '-',
|
||||
ord('?'): '-',
|
||||
ord('\\'): '-',
|
||||
ord('|'): '-',
|
||||
ord('\"'): '\'',
|
||||
# Reserved in Windows VFAT
|
||||
ord('+'): '-',
|
||||
|
Loading…
Reference in New Issue
Block a user