diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/mockserver/KeyValueInfo.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/mockserver/KeyValueInfo.java index 9b1bdb6b74..d059660aad 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/mockserver/KeyValueInfo.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/mockserver/KeyValueInfo.java @@ -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; }