From: Calin Crisan Date: Tue, 14 Jul 2015 19:09:43 +0000 (+0300) Subject: # is a valid character in motion config unless it's at the beginning of X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=759c6063ce4efeaeb1016ebc9f78d22ca5e969c3;p=motioneye-debian # is a valid character in motion config unless it's at the beginning of the line --- diff --git a/src/config.py b/src/config.py index ad5d6ff..4772108 100644 --- a/src/config.py +++ b/src/config.py @@ -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]