Skip to content

Commit

Permalink
arg_parser.py: Fixed regex
Browse files Browse the repository at this point in the history
  • Loading branch information
artanokhov committed Sep 11, 2024
1 parent dbedc8d commit b79e569
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 @@ -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{3,4})?', 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())
Expand Down

0 comments on commit b79e569

Please sign in to comment.