mirror of https://github.com/stijndcl/didier
Forgot special characters are also lists
parent
9d3f71eb1f
commit
0d75340d64
|
@ -277,7 +277,8 @@ def getAllVariants(char: str):
|
||||||
|
|
||||||
# Special Character
|
# Special Character
|
||||||
elif char in getSpecialCharacters():
|
elif char in getSpecialCharacters():
|
||||||
variants.append(getSpecialCharacters()[char])
|
for letter in getSpecialCharacters()[char]:
|
||||||
|
variants.append(letter)
|
||||||
|
|
||||||
# Get all doubles
|
# Get all doubles
|
||||||
if char in getDoubles():
|
if char in getDoubles():
|
||||||
|
@ -288,6 +289,7 @@ def getAllVariants(char: str):
|
||||||
# Use a list here to keep the order!
|
# Use a list here to keep the order!
|
||||||
uniques = []
|
uniques = []
|
||||||
|
|
||||||
|
print(variants)
|
||||||
for var in variants:
|
for var in variants:
|
||||||
rep = ":" + var + ":"
|
rep = ":" + var + ":"
|
||||||
if rep not in uniques:
|
if rep not in uniques:
|
||||||
|
|
Loading…
Reference in New Issue