From a5bb50e32d690124f0e5e7df396bc4ed57034078 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 20 Jul 2017 12:24:44 +0800 Subject: [PATCH] bugfix: variable name and function name could have _ --- ate/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ate/utils.py b/ate/utils.py index b75ddfe2..12e2619c 100644 --- a/ate/utils.py +++ b/ate/utils.py @@ -16,8 +16,8 @@ except NameError: string_type = str PYTHON_VERSION = 3 -variable_regexp = re.compile(r"^\$(\w+)$") -function_regexp = re.compile(r"^\$\{(\w+)\(([\$\w =,]*)\)\}$") +variable_regexp = re.compile(r"^\$([\w_]+)$") +function_regexp = re.compile(r"^\$\{([\w_]+)\(([\$\w_ =,]*)\)\}$") def gen_random_string(str_len): return ''.join(