fix(接口定义): 修复推荐jsonpath断言索引超过10无法生成预期的缺陷
--bug=1021925 --user=王孝刚 [接口测试]GitHub#21303断言规则适用JSONPath推荐方式,当列表索引值超过10,期望值无法自动填写 https://www.tapd.cn/55049933/s/1327710
This commit is contained in:
parent
26c4537417
commit
e384a3c21f
|
@ -139,7 +139,7 @@ export default {
|
|||
let param = params[index];
|
||||
let childObj;
|
||||
|
||||
let reg = /\[\d\]$/;
|
||||
let reg = /\[[0-9]+\]$/;
|
||||
let regIndex = param.search(reg);
|
||||
if (regIndex > -1) {
|
||||
let paramName = param.substring(0, regIndex);
|
||||
|
|
|
@ -135,7 +135,7 @@ export default {
|
|||
let param = params[index];
|
||||
let childObj;
|
||||
|
||||
let reg = /\[\d\]$/;
|
||||
let reg = /\[[0-9]+\]$/;
|
||||
let regIndex = param.search(reg);
|
||||
if (regIndex > -1) {
|
||||
let paramName = param.substring(0, regIndex);
|
||||
|
|
Loading…
Reference in New Issue