check-config: allow numbers in configs
authortimeless <timeless@mozdev.org>
Tue, 08 Dec 2015 09:09:01 +0000
changeset 27311 24a1c24fad6e
parent 27310 9c98fe1416c2
child 27312 f925d492113a
check-config: allow numbers in configs p4...
contrib/check-config.py
--- a/contrib/check-config.py	Tue Dec 08 09:22:53 2015 +0000
+++ b/contrib/check-config.py	Tue Dec 08 09:09:01 2015 +0000
@@ -40,13 +40,13 @@
             if m:
                 confsect = m.group(1)
                 continue
-            m = re.match(r'^\s+(?:#\s*)?([a-z._]+) = ', l)
+            m = re.match(r'^\s+(?:#\s*)?(\S+) = ', l)
             if m:
                 name = confsect + '.' + m.group(1)
                 documented[name] = 1
 
             # like the bugzilla extension
-            m = re.match(r'^\s*([a-z]+\.[a-z]+)$', l)
+            m = re.match(r'^\s*(\S+\.\S+)$', l)
             if m:
                 documented[m.group(1)] = 1
 
@@ -56,7 +56,7 @@
                 documented[m.group(1)] = 1
 
             # quoted in help or docstrings
-            m = re.match(r'.*?``([-a-z_]+\.[-a-z_]+)``', l)
+            m = re.match(r'.*?``(\S+\.\S+)``', l)
             if m:
                 documented[m.group(1)] = 1