From 7a05f23f41f9102319ab04ebc7a3b86056b6890e Mon Sep 17 00:00:00 2001 From: Nikita Kozlovtsev Date: Fri, 12 Jul 2024 16:06:52 +0300 Subject: [PATCH] fix github --- whole_app/spell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whole_app/spell.py b/whole_app/spell.py index a11d534..d4b11bd 100644 --- a/whole_app/spell.py +++ b/whole_app/spell.py @@ -35,7 +35,7 @@ def prepare( if request_payload.exclude_urls: for one_url in self._url_extractor.find_urls(self._input_text): self._exclusion_words.extend( - [word.lower() for word in re.split(SEPARATORS_TO_SPLIT_URL_BY_WORDS, one_url)] + {word.lower() for word in re.split(SEPARATORS_TO_SPLIT_URL_BY_WORDS, one_url)} ) self._spellcheck_engine = SpellChecker(request_payload.language)