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