Skip to content

Commit 7337ea4

Browse files
committed
fix support_matrix.py to handle ?=
1 parent 46298dd commit 7337ea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/shared_bindings_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def build_module_map():
9898
for module in modules:
9999
full_name = module
100100
search_name = module.lstrip("_")
101-
re_pattern = "CIRCUITPY_{}\s=\s(.+)".format(search_name.upper())
101+
re_pattern = "CIRCUITPY_{}\s*\??=\s*(.+)".format(search_name.upper())
102102
find_config = re.findall(re_pattern, configs)
103103
if not find_config:
104104
continue

0 commit comments

Comments
 (0)