Compare und () erweitert
This commit is contained in:
@@ -9,12 +9,19 @@ REPLACEMENTS = [
|
||||
(".", ""),
|
||||
("-", " "),
|
||||
(",", ""),
|
||||
("(", ""),
|
||||
(")", ""),
|
||||
(" ...",""),
|
||||
]
|
||||
|
||||
name_new = ""
|
||||
i = 1
|
||||
|
||||
def compare(s1: str, s2: str) -> bool:
|
||||
if s1.endswith(" "):
|
||||
s1 = s1[:-1]
|
||||
if s2.endswith(" "):
|
||||
s2 = s2[:-1]
|
||||
return normalize("NFKC", s1).casefold() == normalize("NFKC", s2).casefold()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user