]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tools: Be a little more strict when matching command names
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 25 Oct 2016 00:36:11 +0000 (00:36 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 25 Oct 2016 00:36:11 +0000 (00:36 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
tools/cmd_check.py

index 3a402138bd5d46d18b724060749247d2d9159125..e632c3ecc5076baad0612531a7d69a81c76db463 100755 (executable)
@@ -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