fix(接口测试): 修复接口test添加断言为jsonpath点击推荐jsonpath邮箱格式提取错误的缺陷
--bug=1011245 --user=王孝刚 【接口测试】接口test-添加断言为jsonpath-点击推荐jsonpath-邮箱格式提取错误 https://www.tapd.cn/55049933/s/1118339
This commit is contained in:
parent
2ff5769c32
commit
aa9f7891b2
|
@ -226,7 +226,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