Skip to content

Commit

Permalink
Merge pull request #188 from olehermanse/pretty
Browse files Browse the repository at this point in the history
Allowed numbers in namespaces in module input
  • Loading branch information
olehermanse committed Jan 24, 2024
2 parents 143d17b + 5ab50f6 commit a378131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfbs/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]):
Expand Down

0 comments on commit a378131

Please sign in to comment.