From 207d37dd226c0027336cd3332b55bc0ba213a534 Mon Sep 17 00:00:00 2001 From: Anokhov Date: Fri, 30 Aug 2024 13:09:39 +0200 Subject: [PATCH] arg_parser: Fixed regex for build_id --- 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 349df9cc..892449b0 100644 --- a/utils/arg_parser.py +++ b/utils/arg_parser.py @@ -591,7 +591,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{3,4})", args.package_url) + build_id = re.search(r"_(\d{4}\.(?:\d\.){2,3})\.(\d{3,4})?", args.package_url) if build_id: # save product version YYYY.U.V.BBB args.build_id = ".".join(build_id.groups())