fix: space in words
This commit is contained in:
@@ -14,7 +14,7 @@ class FactoryError(Exception):
|
||||
|
||||
|
||||
class Factory:
|
||||
__slots__ = ["__found", "__tld_list", "__word_list", "logger", "__words"]
|
||||
__slots__ = ["__found", "__tld_list", "__word_list", "__words", "logger"]
|
||||
|
||||
def __init__(self, tld_list: TLDList, word_list: WordList, words: int) -> None:
|
||||
self.logger: logging.Logger = logging.getLogger(self.__class__.__name__)
|
||||
@@ -71,7 +71,7 @@ class Factory:
|
||||
tld_escaped = tld.replace(".", "")
|
||||
if word.endswith(tld_escaped) and len(word) > len(tld_escaped):
|
||||
domain = word[: -len(tld_escaped)] + "." + tld
|
||||
if domain not in self.__found:
|
||||
if "-." not in domain and domain not in self.__found:
|
||||
self.__found.add(domain)
|
||||
return domain
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user