From 1068d724bd48ee315099cc7d35f44b854a812b03 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 15 Mar 2022 19:16:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3test=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E4=B8=BAjsonpath=E7=82=B9=E5=87=BB=E6=8E=A8?= =?UTF-8?q?=E8=8D=90jsonpath=E9=82=AE=E7=AE=B1=E6=A0=BC=E5=BC=8F=E6=8F=90?= =?UTF-8?q?=E5=8F=96=E9=94=99=E8=AF=AF=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1011245 --user=王孝刚 【接口测试】接口test-添加断言为jsonpath-点击推荐jsonpath-邮箱格式提取错误 https://www.tapd.cn/55049933/s/1118339 --- .../api/definition/components/assertion/ApiAssertions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue b/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue index ef4198021b..9bd7bd8125 100644 --- a/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue +++ b/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue @@ -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('$', "\\$"); }