From 6c94234b72cc394102fe327069a3dfd378c86da7 Mon Sep 17 00:00:00 2001 From: microDev <70126934+microDev1@users.noreply.github.com> Date: Fri, 22 Oct 2021 20:00:02 +0530 Subject: [PATCH] allow any character except / in port or board name --- tools/ci_set_matrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ci_set_matrix.py b/tools/ci_set_matrix.py index 09c7311220..e586791001 100644 --- a/tools/ci_set_matrix.py +++ b/tools/ci_set_matrix.py @@ -62,8 +62,8 @@ def set_boards_to_build(build_all): if not build_all: boards_to_build = set() - board_pattern = re.compile(r"^ports\/\w+\/boards\/(\w+)\/") - port_pattern = re.compile(r"^ports\/(\w+)\/") + board_pattern = re.compile(r"^ports\/[^/]+\/boards\/([^/]+)\/") + port_pattern = re.compile(r"^ports\/([^/]+)\/") for p in changed_files: # See if it is board specific board_matches = board_pattern.search(p)