revert(接口测试): mock正则匹配

This commit is contained in:
AgAngle 2024-04-21 19:05:36 +08:00 committed by 刘瑞斌
parent 2aef4d50b9
commit dd9199be50
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class KeyValueInfo {
} }
} else if (StringUtils.equals(this.condition, ParamConditionEnums.REGULAR_MATCH.name())) { } else if (StringUtils.equals(this.condition, ParamConditionEnums.REGULAR_MATCH.name())) {
try { try {
return this.value.matches(value); return this.value.matches(Pattern.quote(value));
} catch (Exception e) { } catch (Exception e) {
return false; return false;
} }