Skip to content

Commit a378131

Browse files
authored
Merge pull request #188 from olehermanse/pretty
Allowed numbers in namespaces in module input
2 parents 143d17b + 5ab50f6 commit a378131

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cfbs/validate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ def validate_module_input(name, module):
346346
'"%s" is not an acceptable variable name, must match regex "[a-z_]+"'
347347
% input_element["variable"],
348348
)
349-
if not re.fullmatch(r"[a-z_]+", input_element["namespace"]):
349+
if not re.fullmatch(r"[a-z_][a-z0-9_]+", input_element["namespace"]):
350350
raise CFBSValidationError(
351351
name,
352-
'"%s" is not an acceptable namespace, must match regex "[a-z_]+"'
352+
'"%s" is not an acceptable namespace, must match regex "[a-z_][a-z0-9_]+"'
353353
% input_element["namespace"],
354354
)
355355
if not re.fullmatch(r"[a-z_]+", input_element["bundle"]):

0 commit comments

Comments
 (0)