From 54d2dede8249020eb3090e0646a69848f0432c8e Mon Sep 17 00:00:00 2001 From: smorloc Date: Tue, 22 Jan 2013 13:04:16 -0500 Subject: [PATCH] Allow plugin variable names to include numbers An example name would be 'extruder1' --- Cura/util/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2