From 0d75340d64cc898bda8c24e48c1763f4a7de7d48 Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Thu, 17 Dec 2020 01:30:12 +0100 Subject: [PATCH] Forgot special characters are also lists --- functions/reactWord.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/reactWord.py b/functions/reactWord.py index b0060e6..0a01214 100644 --- a/functions/reactWord.py +++ b/functions/reactWord.py @@ -277,7 +277,8 @@ def getAllVariants(char: str): # Special Character elif char in getSpecialCharacters(): - variants.append(getSpecialCharacters()[char]) + for letter in getSpecialCharacters()[char]: + variants.append(letter) # Get all doubles if char in getDoubles(): @@ -288,6 +289,7 @@ def getAllVariants(char: str): # Use a list here to keep the order! uniques = [] + print(variants) for var in variants: rep = ":" + var + ":" if rep not in uniques: