fix the regexp check
This commit is contained in:
parent
836452bb3b
commit
a6c0636eb4
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class BaseBackend(object):
|
|||
if value is None:
|
||||
raise BaseBackend.ConfigError('Missing parameter "%s" (%s)' % (name, field.description))
|
||||
|
||||
if field.regexp and re.match(field.regexp, str(value)):
|
||||
if field.regexp and not re.match(field.regexp, str(value)):
|
||||
raise BaseBackend.ConfigError('Value of "%s" does not match regexp "%s"' % (name, field.regexp))
|
||||
|
||||
if not field.default is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue