diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/curl/constants/CurlPatternConstants.java b/backend/services/api-test/src/main/java/io/metersphere/api/curl/constants/CurlPatternConstants.java index c8ab8b3477..0f9c1aa3ed 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/curl/constants/CurlPatternConstants.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/curl/constants/CurlPatternConstants.java @@ -56,7 +56,7 @@ public interface CurlPatternConstants { /** * --form 请求体 */ - Pattern HTTP_FROM_BODY_PATTERN = Pattern.compile("--form\\s+'(.*?)'|-F\\s+'(.*?)'"); + Pattern HTTP_FROM_BODY_PATTERN = Pattern.compile("--form\\s+['\"](.*?)['\"]|-F\\s+['\"](.*?)['\"]"); /**