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 f5c30c5af2
commit 1068d724bd
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ export default {
let expect = jsonItem.expect; let expect = jsonItem.expect;
if (expect) { if (expect) {
expect = expect.replaceAll('\\', "\\\\").replaceAll('(', "\\(").replaceAll(')', "\\)") expect = expect.replaceAll('\\', "\\\\").replaceAll('(', "\\(").replaceAll(')', "\\)")
.replaceAll('+', "\\+").replaceAll('.', "\\.").replaceAll('[', "\\[").replaceAll(']', "\\]") .replaceAll('+', "\\+").replaceAll('[', "\\[").replaceAll(']', "\\]")
.replaceAll('?', "\\?").replaceAll('/', "\\/").replaceAll('*', "\\*") .replaceAll('?', "\\?").replaceAll('/', "\\/").replaceAll('*', "\\*")
.replaceAll('^', "\\^").replaceAll('{', "\\{").replaceAll('}', "\\}").replaceAll('$', "\\$"); .replaceAll('^', "\\^").replaceAll('{', "\\{").replaceAll('}', "\\}").replaceAll('$', "\\$");
} }