chg: [providence] test each word for a sentence

This commit is contained in:
Alexandre Dulaunoy 2023-01-10 17:44:11 +01:00
parent 543232895a
commit 28d5c91f4a
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -71,7 +71,8 @@ if re.search(r' {1,}', args.name):
p = name.replace(" ", "")
results.update(guess_name(name=p, tlds=tlds))
# try with removal of word
for word in args.name.split(" "):
results.update(guess_name(name=word, tlds=tlds))
else:
results.update(guess_name(name=args.name, tlds=tlds))