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(