Skip to content

Commit

Permalink
arg_parser: Fixed regex for build_id
Browse files Browse the repository at this point in the history
  • Loading branch information
artanokhov committed Aug 30, 2024
1 parent f438fb0 commit 207d37d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 207d37d

Please sign in to comment.