Project

General

Profile

Actions

Bug #7866

closed

Parsing of @parameter does not accept numeric variable names

Added by Janos Mattyasovszky almost 9 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
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)

Related issues 1 (0 open1 closed)

Blocks Rudder - Bug #7864: Missing Functions for File-ChecksReleasedAlexis MoussetActions
Actions

Also available in: Atom PDF