mistake with commenting out function, should definitely go through all functions relevance though
This commit is contained in:
parent
472effd027
commit
9a8acda499
@ -78,23 +78,23 @@ def determine(host):
|
|||||||
return host_type
|
return host_type
|
||||||
|
|
||||||
|
|
||||||
# def extract(user_input):
|
def extract(user_input):
|
||||||
# hosts = []
|
hosts = []
|
||||||
# errors = []
|
errors = []
|
||||||
# for item in user_input:
|
for item in user_input:
|
||||||
# if validators.url(item):
|
if validators.url(item):
|
||||||
# hosts.append(item)
|
hosts.append(item)
|
||||||
# elif validators.domain(item):
|
elif validators.domain(item):
|
||||||
# hosts.append(item)
|
hosts.append(item)
|
||||||
# elif validators.ip_address.ipv4(item):
|
elif validators.ip_address.ipv4(item):
|
||||||
# hosts.append(item)
|
hosts.append(item)
|
||||||
# elif validators.ip_address.ipv6(item):
|
elif validators.ip_address.ipv6(item):
|
||||||
# hosts.append(item)
|
hosts.append(item)
|
||||||
# elif validators.email(item):
|
elif validators.email(item):
|
||||||
# hosts.append(item)
|
hosts.append(item)
|
||||||
# else:
|
else:
|
||||||
# errors.append(item)
|
errors.append(item)
|
||||||
# return hosts, errors
|
return hosts, errors
|
||||||
|
|
||||||
|
|
||||||
def domain(host):
|
def domain(host):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user