fix for validation regex of proxy data
This commit is contained in:
parent
b5faa4c09e
commit
af148d4fd2
@ -85,7 +85,7 @@ def check_proxy_data_format(var_content):
|
||||
:param var_content: content of the proxy data variable
|
||||
:return: True if the content is of valid format, False otherwise
|
||||
"""
|
||||
return re.match(r"^(\w+:[^:,]+,)+\w+:[^:,]+$", var_content) is not None
|
||||
return re.match(r"^(\w+:[^:,]+,)*\w+:[^:,]+$", var_content) is not None
|
||||
|
||||
|
||||
def extract_ip(inspect_data):
|
||||
|
Loading…
Reference in New Issue
Block a user