Skip to content

Commit

Permalink
修复el表达式不能匹配多个变量的问题,修复StringParser问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxiaosusu committed Jul 11, 2021
1 parent 1191dcf commit 85a2cc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/utils/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class Executor(object):
log = Log("Executor")
el_exp = r"\$\{(.+)\}"
el_exp = r"\$\{(.+?)\}"
pattern = re.compile(el_exp)
# 需要替换全局变量的字段
fields = ['body', 'url', 'request_header']
Expand Down
3 changes: 2 additions & 1 deletion app/utils/gconfig_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def parse(value, jsonpath):

class StringGConfigParser(GConfigParser):

def parse(self, value, jsonpath):
@staticmethod
def parse(value, jsonpath):
return value


Expand Down

0 comments on commit 85a2cc1

Please sign in to comment.