From 404e2d761532284286fbb1607d5899030fe41e2a Mon Sep 17 00:00:00 2001 From: Anokhov Date: Wed, 11 Sep 2024 16:08:04 +0200 Subject: [PATCH] arg_parser.py: Fixed regex --- utils/arg_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/arg_parser.py b/utils/arg_parser.py index 071bbdef..4566e11a 100644 --- a/utils/arg_parser.py +++ b/utils/arg_parser.py @@ -593,7 +593,7 @@ def parse_args(name: str, description: str): # noqa args.product_version = dev_version.group(1) args.build_id = args.product_version else: - build_id = re.search(r"_(\d{4}\.(?:\d\.){2,3})(\d+?)?", args.package_url) + build_id = re.search(r"_(\d{4}\.(?:\d\.){2,3}\d*)", args.package_url) if build_id: # save product version YYYY.U.V.BBB args.build_id = ".".join(build_id.groups())