Compare und () erweitert

This commit is contained in:
2026-02-08 18:36:02 +01:00
parent 7c20cccc53
commit db6540e1c2

View File

@@ -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()