fix(接口测试): 修复接口test添加断言为jsonpath点击推荐jsonpath邮箱格式提取错误的缺陷

--bug=1011245 --user=王孝刚
【接口测试】接口test-添加断言为jsonpath-点击推荐jsonpath-邮箱格式提取错误
https://www.tapd.cn/55049933/s/1118339
This commit is contained in:
wxg0103 2022-03-15 19:16:11 +08:00 committed by 刘瑞斌
parent 2ff5769c32
commit aa9f7891b2
1 changed files with 1 additions and 1 deletions

View File

@ -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('$', "\\$");
}