From 759c6063ce4efeaeb1016ebc9f78d22ca5e969c3 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Tue, 14 Jul 2015 22:09:43 +0300 Subject: [PATCH] # is a valid character in motion config unless it's at the beginning of the line --- src/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] -- 2.39.5