mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 06:23:52 +08:00
bugfix: variable name and function name could have _
This commit is contained in:
@@ -16,8 +16,8 @@ except NameError:
|
|||||||
string_type = str
|
string_type = str
|
||||||
PYTHON_VERSION = 3
|
PYTHON_VERSION = 3
|
||||||
|
|
||||||
variable_regexp = re.compile(r"^\$(\w+)$")
|
variable_regexp = re.compile(r"^\$([\w_]+)$")
|
||||||
function_regexp = re.compile(r"^\$\{(\w+)\(([\$\w =,]*)\)\}$")
|
function_regexp = re.compile(r"^\$\{([\w_]+)\(([\$\w_ =,]*)\)\}$")
|
||||||
|
|
||||||
def gen_random_string(str_len):
|
def gen_random_string(str_len):
|
||||||
return ''.join(
|
return ''.join(
|
||||||
|
|||||||
Reference in New Issue
Block a user