Fix set variables

develop
Mike Hiretsky 14 years ago
parent 4eb5b0149c
commit 88a7e8f1d7

@ -297,7 +297,7 @@ class opt(optparse.OptionParser):
def checkVarSyntax(self,values):
"""Check value of parameter set, was used for change vars"""
reCheckSet = re.compile("^([a-z_]+=[^,]+)(,\s*[a-z_]+=[^,]+)*$")
reCheckSet = re.compile("^[a-z0-9_]+=[^,]+(,[a-z0-9_]+=[^,]+)*$")
if values.set:
for val in values.set:
if not reCheckSet.match(val):

Loading…
Cancel
Save