fix: space in words
Python Lint CI / ruff (push) Has been cancelled
Python Lint CI / ruff-format-check (push) Has been cancelled
Python Lint CI / ty (push) Has been cancelled

This commit is contained in:
2026-06-15 14:31:21 +02:00
parent 4df2bab348
commit d1deaad03f
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -22,7 +22,10 @@ class WordList:
self.logger.info("[%s] Loaded %d words", self.__name, len(self.words))
def __escape_word(self, word: str) -> str:
return unidecode.unidecode(word.strip()).lower()
word = unidecode.unidecode(word.strip()).lower()
if " " in word:
return ""
return word
def close(self) -> None:
pass