Bug 1232421 - force matching the start of the line for comments, r=glandium
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 14 Dec 2015 20:33:57 +0000
changeset 315840 d0f136a93ad36c7f31c19408696935c4f6e8bd9c
parent 315839 48a56019f52049bbf9ccede95d15a2cb3b5295bc
child 315841 b5336b2a4e6ebb6fd73a6b19052ac8eaa75e121a
push id8469
push userbgrinstead@mozilla.com
push dateWed, 16 Dec 2015 19:53:11 +0000
reviewersglandium
bugs1232421
milestone46.0a1
Bug 1232421 - force matching the start of the line for comments, r=glandium
python/mozbuild/mozpack/chrome/manifest.py
--- a/python/mozbuild/mozpack/chrome/manifest.py
+++ b/python/mozbuild/mozpack/chrome/manifest.py
@@ -320,17 +320,17 @@ class ManifestContract(ManifestEntry):
     def __str__(self):
         return self.serialize(self.contractID, self.cid)
 
 # All manifest classes by their type name.
 MANIFESTS_TYPES = dict([(c.type, c) for c in globals().values()
                        if type(c) == type and issubclass(c, ManifestEntry)
                        and hasattr(c, 'type') and c.type])
 
-MANIFEST_RE = re.compile(r'\s*#.*$')
+MANIFEST_RE = re.compile(r'^#.*$')
 
 
 def parse_manifest_line(base, line):
     '''
     Parse a line from a manifest file with the given base directory and
     return the corresponding ManifestEntry instance.
     '''
     # Remove comments