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())) {
|
} 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue