author | Thierry Florac <thierry.florac@onf.fr> |
Thu, 02 Jun 2016 16:41:14 +0200 | |
changeset 66 | 1e9c6d17203e |
parent 65 | 326d216d3fc2 |
child 67 | 8b172808ca6c |
--- 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]