mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
bugfix: variable name and function name could have _
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user