fix(接口测试): 修复接口test添加断言为jsonpath点击推荐jsonpath邮箱格式提取错误的缺陷
--bug=1011245 --user=王孝刚 【接口测试】接口test-添加断言为jsonpath-点击推荐jsonpath-邮箱格式提取错误 https://www.tapd.cn/55049933/s/1118339
This commit is contained in:
parent
f5c30c5af2
commit
1068d724bd
|
@ -211,7 +211,7 @@ export default {
|
|||
let expect = jsonItem.expect;
|
||||
if (expect) {
|
||||
expect = expect.replaceAll('\\', "\\\\").replaceAll('(', "\\(").replaceAll(')', "\\)")
|
||||
.replaceAll('+', "\\+").replaceAll('.', "\\.").replaceAll('[', "\\[").replaceAll(']', "\\]")
|
||||
.replaceAll('+', "\\+").replaceAll('[', "\\[").replaceAll(']', "\\]")
|
||||
.replaceAll('?', "\\?").replaceAll('/', "\\/").replaceAll('*', "\\*")
|
||||
.replaceAll('^', "\\^").replaceAll('{', "\\{").replaceAll('}', "\\}").replaceAll('$', "\\$");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue