From 433928b50f82f6fec18af60e6be5b0fe4d4d4b4e Mon Sep 17 00:00:00 2001 From: Lovi <62809003+Lovi-0@users.noreply.github.com> Date: Sat, 22 Jun 2024 08:39:47 +0200 Subject: [PATCH] Fix other special char. --- Src/Util/os.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Src/Util/os.py b/Src/Util/os.py index bc905a2..23a188d 100644 --- a/Src/Util/os.py +++ b/Src/Util/os.py @@ -31,9 +31,14 @@ from .console import console - # --> OS FILE ASCII -special_chars_to_remove = ['!','@','#','$','%','^','&','*','(',')','[',']','{','}','<','|','`','~',"'",'"',';',':',',','?',"\\","/","\t"] +special_chars_to_remove = [ + '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '[', ']', '{', '}', '<', + '>', '|', '`', '~', "'", '"', ';', ':', ',', '?', '\\', '/', '\t', ' ', '=', + '+', '\n', '\r', '\0' +] + + def get_max_length_by_os(system: str) -> int: """