diff options
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r-- | ipalib/constants.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py index 0ace2a28..79ddbca8 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -26,7 +26,7 @@ All constants centralised in one file. NULLS = (None, '', u'', tuple(), []) # regular expression NameSpace member names must match: -NAME_REGEX = r'^[a-z][_a-z0-9]*[a-z0-9]$' +NAME_REGEX = r'^[a-z][_a-z0-9]*[a-z0-9]$|^[a-z]$' # Format for ValueError raised when name does not match above regex: NAME_ERROR = 'name must match %r; got %r' |