diff --git a/cfbs/validate.py b/cfbs/validate.py index bde6a0b..4fdcc3c 100644 --- a/cfbs/validate.py +++ b/cfbs/validate.py @@ -346,10 +346,10 @@ def validate_module_input(name, module): '"%s" is not an acceptable variable name, must match regex "[a-z_]+"' % input_element["variable"], ) - if not re.fullmatch(r"[a-z_]+", input_element["namespace"]): + if not re.fullmatch(r"[a-z_][a-z0-9_]+", input_element["namespace"]): raise CFBSValidationError( name, - '"%s" is not an acceptable namespace, must match regex "[a-z_]+"' + '"%s" is not an acceptable namespace, must match regex "[a-z_][a-z0-9_]+"' % input_element["namespace"], ) if not re.fullmatch(r"[a-z_]+", input_element["bundle"]):