mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 05:19:38 +08:00
fix: regex match in Python 2.7/3.3/3.4/3.5
This commit is contained in:
@@ -451,11 +451,11 @@ class LazyString(object):
|
|||||||
# search function like ${func($a, $b)}
|
# search function like ${func($a, $b)}
|
||||||
func_match = function_regex_compile.match(raw_string, match_start_position)
|
func_match = function_regex_compile.match(raw_string, match_start_position)
|
||||||
if func_match:
|
if func_match:
|
||||||
function_meta = parse_function_params(func_match[1])
|
function_meta = parse_function_params(func_match.group(1))
|
||||||
function_meta = {
|
function_meta = {
|
||||||
"func_name": func_match[1]
|
"func_name": func_match.group(1)
|
||||||
}
|
}
|
||||||
function_meta.update(parse_function_params(func_match[2]))
|
function_meta.update(parse_function_params(func_match.group(2)))
|
||||||
lazy_func = LazyFunction(
|
lazy_func = LazyFunction(
|
||||||
function_meta,
|
function_meta,
|
||||||
self.functions_mapping,
|
self.functions_mapping,
|
||||||
|
|||||||
Reference in New Issue
Block a user