From af148d4fd22e5871ece3ae6975cc5e14d62da335 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sat, 30 May 2020 18:45:41 +0200 Subject: [PATCH] fix for validation regex of proxy data --- nginx_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):