Bugfix: control characters aren't allowed in windows filenames
This commit is contained in:
parent
0051877e01
commit
aaf51b0eff
1 changed files with 1 additions and 0 deletions
|
@ -221,6 +221,7 @@ class FileNameFormatter:
|
|||
for char in invalid_characters:
|
||||
input_string = input_string.replace(char, "")
|
||||
input_string = FileNameFormatter._strip_emojis(input_string)
|
||||
input_string = "".join(ch for ch in input_string if ord(ch) > 31 and ord(ch) != 127)
|
||||
return input_string
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in a new issue