mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
This function does not replace with _
This commit is contained in:
parent
0afe03cd89
commit
d4e7fc4ad9
1 changed files with 1 additions and 1 deletions
|
|
@ -717,7 +717,7 @@ INVALID_FILE_CHARS = re.compile(r'[/<>:\|"\\\?\*%]')
|
|||
|
||||
|
||||
def escape_file_name(name: str) -> str:
|
||||
"""Replace any invalid characters in a file name with "_"."""
|
||||
"""Remove any invalid characters in a file name."""
|
||||
return INVALID_FILE_CHARS.sub('', name)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue