fix(接口测试): 导出cURL中url地址不带query参数

--bug=1046162 --user=王旭 【接口测试】github#32998,【接口调试】get请求带一个query参数,cURL导出后,再进行导入,显示请求地址处有个参数,query处有参数,最终发出去的参数有两个。 https://www.tapd.cn/55049933/s/1578657
This commit is contained in:
WangXu10 2024-09-14 10:49:10 +08:00 committed by Craftsman
parent 153a0482cf
commit 36d920e6d3
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ public interface CurlPatternConstants {
/** /**
* URL路径 * URL路径
*/ */
Pattern URL_PATH_PATTERN = Pattern.compile("(?:\\s|^)(?:'|\")?(https?://[^\\s'\"]*(?:\\?[^\\s'\"]*)?)(?:'|\")?(?:\\s|$)"); Pattern URL_PATH_PATTERN = Pattern.compile("(?:\\s|^)(?:'|\")?(https?://[^?\\s'\"]*)(?:\\?[^\\s'\"]*)?(?:'|\")?(?:\\s|$)");
/** /**
* URL_PARAMS请求参数 * URL_PARAMS请求参数