summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-10-25 00:36:11 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-10-25 00:36:11 +0000
commit1b81c5bde02dd290fb0d37bc67c19b066f1e7fc8 (patch)
tree19e136cd5cebb5ee58f8fc28af856e130091268f
parent55bdefacac374c0c592f420c20caba4c27a3cc66 (diff)
tools: Be a little more strict when matching command names
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rwxr-xr-xtools/cmd_check.py4
1 files 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