diff --git a/nginx_proxy.py b/nginx_proxy.py index 4a4346c..adb2939 100755 --- a/nginx_proxy.py +++ b/nginx_proxy.py @@ -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):