revert(接口测试): mock正则匹配
This commit is contained in:
parent
2aef4d50b9
commit
dd9199be50
|
@ -55,7 +55,7 @@ public class KeyValueInfo {
|
|||
}
|
||||
} else if (StringUtils.equals(this.condition, ParamConditionEnums.REGULAR_MATCH.name())) {
|
||||
try {
|
||||
return this.value.matches(value);
|
||||
return this.value.matches(Pattern.quote(value));
|
||||
} catch (Exception e) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue