From 6eb734995a4f68c7fded05e8a1785849e545e264 Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Wed, 30 Nov 2022 09:25:13 +0000 Subject: [PATCH] Change the re for matching an item's label --- tools/check_typed_item_calls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_typed_item_calls.py b/tools/check_typed_item_calls.py index 42a5442d06..7770e2aea5 100755 --- a/tools/check_typed_item_calls.py +++ b/tools/check_typed_item_calls.py @@ -624,7 +624,7 @@ def find_items(filename, check_mask=False, check_label=False, check_consecutive= contents = f.read() # Remove comments so as not to trip up RE. contents = removeComments(contents) - matches = re.finditer(r'.*\{\s*\&(hf_[a-z_A-Z0-9]*)\s*,\s*{\s*\"*(.+)\"*\s*,\s*\"([a-zA-Z0-9_\-\.]+)\"\s*,\s*([a-zA-Z0-9_]*)\s*,\s*(.*)\s*,\s*([\&A-Za-z0-9x_<\|\s\(\)]*)\s*,\s*([ a-zA-Z0-9x_\<\~\|\(\)]*)\s*,', contents) + matches = re.finditer(r'.*\{\s*\&(hf_[a-z_A-Z0-9]*)\s*,\s*{\s*\"(.+)\"\s*,\s*\"([a-zA-Z0-9_\-\.]+)\"\s*,\s*([a-zA-Z0-9_]*)\s*,\s*(.*)\s*,\s*([\&A-Za-z0-9x_<\|\s\(\)]*)\s*,\s*([ a-zA-Z0-9x_\<\~\|\(\)]*)\s*,', contents) for m in matches: # Store this item. hf = m.group(1)