From: smorloc Date: Tue, 22 Jan 2013 18:04:16 +0000 (-0500) Subject: Allow plugin variable names to include numbers X-Git-Tag: 13.03~64^2~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=54d2dede8249020eb3090e0646a69848f0432c8e;p=cura.git Allow plugin variable names to include numbers An example name would be 'extruder1' --- diff --git a/Cura/util/profile.py b/Cura/util/profile.py index bfd0c0d6..36d76c4e 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -586,7 +586,7 @@ def getPluginList(): elif line[0].upper() == 'DEPEND': pass elif line[0].upper() == 'PARAM': - m = re.match('([a-zA-Z]*)\(([a-zA-Z_]*)(?::([^\)]*))?\) +(.*)', line[1].strip()) + m = re.match('([a-zA-Z][a-zA-Z0-9]*)\(([a-zA-Z_]*)(?::([^\)]*))?\) +(.*)', line[1].strip()) if m is not None: item['params'].append({'name': m.group(1), 'type': m.group(2), 'default': m.group(3), 'description': m.group(4)}) else: