diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/body/MsJsonBodyConverter.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/body/MsJsonBodyConverter.java index 3e7e6ff101..6c5723ac1e 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/body/MsJsonBodyConverter.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/body/MsJsonBodyConverter.java @@ -128,7 +128,7 @@ public class MsJsonBodyConverter extends MsBodyConverter { * @return */ protected String replaceMockComma(String text) { - String pattern = "\\$\\{__Mock\\((.+)\\)\\}"; + String pattern = "\\$\\{__Mock\\((.+?)\\)\\}"; Pattern regex = Pattern.compile(pattern); Matcher matcher = regex.matcher(text); while (matcher.find()) {