changeset 66 | 1e9c6d17203e |
parent 33 | e1aca8c25e61 |
child 72 | 9049384a2bd4 |
--- a/src/pyams_utils/tales.py Thu Jun 02 16:40:39 2016 +0200 +++ b/src/pyams_utils/tales.py Thu Jun 02 16:41:14 2016 +0200 @@ -41,11 +41,12 @@ FUNCTION_EXPRESSION = re.compile('(.+)\((.+)\)') -ARGUMENTS_EXPRESSION = re.compile('[\'\"\w\.\+@]+') +ARGUMENTS_EXPRESSION = re.compile('[^(,)]+') def get_value(econtext, arg): """Extract argument value from context""" + arg = arg.strip() if arg.startswith('"') or arg.startswith("'"): # may be a quoted string... return arg[1:-1]