Actions
Bug #7866
closedParsing of @parameter does not accept numeric variable names
Status:
Released
Priority:
N/A
Assignee:
Category:
Generic methods
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
According to cfengine docs, variable names can be alphanumeric and underscore:
"The allowed characters in variable names are alphanumeric (both upper and lower case) and undercore."
However, "parse_bundlefile_metadata" does not match on numbers, just alpha and underscore:
match = re.match("^\s*#\s*@(\w+)\s(([a-zA-Z_]+)\s+(.*)|.*)$", line, flags=re.UNICODE)
Actions