Patchwork [3,of,5] check-config: escape period in regexp for inline comments

login
register
mail settings
Submitter timeless@mozdev.org
Date Dec. 8, 2015, 9:35 a.m.
Message ID <7f2a4607333500cb5bb0.1449567316@waste.org>
Download mbox | patch
Permalink /patch/11935/
State Accepted
Headers show

Comments

timeless@mozdev.org - Dec. 8, 2015, 9:35 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1449563760 0
#      Tue Dec 08 08:36:00 2015 +0000
# Node ID 7f2a4607333500cb5bb0d749ce6b1c9c161948bb
# Parent  fbbe3a0bbfb764a9aa7da7ea09203aef9580b585
check-config: escape period in regexp for inline comments

Patch

diff --git a/contrib/check-config.py b/contrib/check-config.py
--- a/contrib/check-config.py
+++ b/contrib/check-config.py
@@ -62,7 +62,7 @@ 
 
             # look for ignore markers
             m = re.search(r'# (?:internal|experimental|deprecated|developer)'
-                          ' config: (\S+.\S+)$', l)
+                          ' config: (\S+\.\S+)$', l)
             if m:
                 documented[m.group(1)] = 1