]> www.vanbest.org Git - motioneye-debian/commitdiff
# is a valid character in motion config unless it's at the beginning of
authorCalin Crisan <ccrisan@gmail.com>
Tue, 14 Jul 2015 19:09:43 +0000 (22:09 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Tue, 14 Jul 2015 19:09:43 +0000 (22:09 +0300)
the line

src/config.py

index ad5d6ff3f90743ab4e9559676a8a456485c6c828..4772108e8f71485283d8b5775461612cc0406448 100644 (file)
@@ -1363,7 +1363,7 @@ def _conf_to_dict(lines, list_names=[], no_convert=[]):
         if line.startswith(';'):  # comment line
             continue
         
-        match = re.match('^\#\s*(\@\w+)\s*([^\#]*)', line)
+        match = re.match('^\#\s*(\@\w+)\s*(.*)', line)
         if match:
             name, value = match.groups()[:2]
         
@@ -1407,7 +1407,7 @@ def _dict_to_conf(lines, data, list_names=[]):
             conf_lines.append(line)
             continue
         
-        match = re.match('^\#\s*(\@\w+)\s*([^\#]*)', line)
+        match = re.match('^\#\s*(\@\w+)\s*(.*)', line)
         if match: # @line
             (name, value) = match.groups()[:2]