diff --git a/pym/calculate/lib/cl_template.py b/pym/calculate/lib/cl_template.py index 62e0d5c..660e970 100644 --- a/pym/calculate/lib/cl_template.py +++ b/pym/calculate/lib/cl_template.py @@ -3365,7 +3365,7 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction): textArgv = term[1:-1] for replTerm in replTerms: textArgv = textArgv.replace(*replTerm) - textArgv = re.sub(r'\\x(\d\d)', + textArgv = re.sub(r'\\x([0-9a-fA-F]{2})', lambda x:chr(int(x.group(1),16)),textArgv) listArgv.append(textArgv) elif term.startswith("'") and term.endswith("'"):