mirror of
https://github.com/soimort/you-get.git
synced 2025-02-04 01:03:54 +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({
|
text = text.translate({
|
||||||
0: None,
|
0: None,
|
||||||
ord('/'): '-',
|
ord('/'): '-',
|
||||||
|
ord('|'): '-',
|
||||||
})
|
})
|
||||||
|
|
||||||
if os == 'Windows':
|
if os == 'Windows':
|
||||||
@ -20,7 +21,6 @@ def legitimize(text, os=platform.system()):
|
|||||||
ord('*'): '-',
|
ord('*'): '-',
|
||||||
ord('?'): '-',
|
ord('?'): '-',
|
||||||
ord('\\'): '-',
|
ord('\\'): '-',
|
||||||
ord('|'): '-',
|
|
||||||
ord('\"'): '\'',
|
ord('\"'): '\'',
|
||||||
# Reserved in Windows VFAT
|
# Reserved in Windows VFAT
|
||||||
ord('+'): '-',
|
ord('+'): '-',
|
||||||
|
Loading…
Reference in New Issue
Block a user