Correction on comment-detection regexp
[rainbowstream.git] / rainbowstream / config.py
index 1573cce1f9a14ea184750469e577ae96ef72c412..5f5b81bd18fe67f23339fe631e6e7b9b3e6b25ea 100644 (file)
@@ -6,7 +6,7 @@ from collections import OrderedDict
 
 # Regular expression for comments in config file
 comment_re = re.compile(
-    '(^)?[^\S\n]*/(?:\*(.*?)\*/[^\S\n]*|/[^\n]*)($)?',
+    '(^)[^\S\n]*/(?:\*(.*?)\*/[^\S\n]*|/[^\n]*)($)?',
     re.DOTALL | re.MULTILINE
 )