From 377ca6d6092a8af507bf522ab43da039f3fbafe8 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Fri, 20 Sep 2024 11:38:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20curl=E5=AF=BC=E5=85=A5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/api/curl/constants/CurlPatternConstants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+['\"](.*?)['\"]"); /**