aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2022-11-30 09:25:13 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2022-11-30 09:25:13 +0000
commit6eb734995a4f68c7fded05e8a1785849e545e264 (patch)
tree9006901e1bad6f1899328493783d402a000e028a
parentc69d0114ea18e486742e9746560d002cbc6efbed (diff)
Change the re for matching an item's label
-rwxr-xr-xtools/check_typed_item_calls.py2
1 files changed, 1 insertions, 1 deletions
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)