From 1b81c5bde02dd290fb0d37bc67c19b066f1e7fc8 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Tue, 25 Oct 2016 00:36:11 +0000 Subject: [PATCH] tools: Be a little more strict when matching command names Signed-off-by: Quentin Young --- tools/cmd_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cmd_check.py b/tools/cmd_check.py index 3a402138bd..e632c3ecc5 100755 --- a/tools/cmd_check.py +++ b/tools/cmd_check.py @@ -10,8 +10,8 @@ from pprint import pprint # patterns used to extract commands command_patterns = [ - r'DEF.*\(.*\n\s*(.*_cmd)', - r'ALIAS.*\(.*\n\s*(.*_cmd)', + r'DEF.*\(.*\n\s*([a-z_]*_cmd)', + r'ALIAS.*\(.*\n\s*([a-z_]*_cmd)', ] # patterns that count as installing the command