Correction on comment-detection regexp
authorLertsenem <lertsenem@lertsenem.com>
Wed, 12 Oct 2016 21:54:04 +0000 (23:54 +0200)
committerLertsenem <lertsenem@lertsenem.com>
Wed, 12 Oct 2016 21:54:04 +0000 (23:54 +0200)
commit6bb36e28788f8763ccad6ef4f1afa2122e526569
tree49c2b5efd1209e2b6c2eb7499f0cdd383a0867ea
parentdd4ac7c79b24da9be4137de562d92093f8b3654d
Correction on comment-detection regexp

During the config parse, comments are removed using a complex regexp,
matching (among other things) '//'. A problem arises when your
configuration contains a link of some sort (such as 'http://' ...). The
regexp then consider the '//' and what follows as a comment (and your
configuration is consequently considered corrupt).

Escapinf the '/' works for a time, but it fails as soon as you use the
'config' command at runtime, because the configuration is then
rewritten.

Therefore I changed the regexp used to match comments. It's a fairly
complex regexp though, and I'm not 100% positive my change is perfect.
Fell free to review it.
rainbowstream/colorset/config
rainbowstream/config.py