Skip to content
Snippets Groups Projects
Commit 491c67ca authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Ignore comment line for envsetup conf variables

parent 6495113e
No related branches found
No related tags found
No related merge requests found
...@@ -84,9 +84,9 @@ def run_module(): ...@@ -84,9 +84,9 @@ def run_module():
prefix = module.params["prefix"] prefix = module.params["prefix"]
lower = boolean(module.params["lower"]) lower = boolean(module.params["lower"])
variables = {} variables = {}
regex_valid_name = re.compile("^[a-zA-Z][a-zA-Z0-9_-]*$") regex_valid_name = re.compile(r"^[a-zA-Z][a-zA-Z0-9_-]*$")
regex_key_value = re.compile( regex_key_value = re.compile(
"^(?P<key>[a-zA-Z][a-zA-Z0-9_-]*)=(?:[\'\"])?(?P<value>(?:[^\'\"])*)(?:[\'\"])?$", r"^(?!#)(?P<key>[a-zA-Z][a-zA-Z0-9_-]*)=(?:[\'\"])?(?P<value>(?:[^\'\"\n])*)(?:[\'\"])?$",
re.MULTILINE re.MULTILINE
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment