Skip to content

Commit

Permalink
revert(接口测试): mock正则匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
AgAngle authored and liuruibin committed Apr 22, 2024
1 parent 2aef4d5 commit dd9199b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public boolean matchValue(String value) {
}
} 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;
}
Expand Down

0 comments on commit dd9199b

Please sign in to comment.