From 47c697fd5fe1ebb8ae6173342247d98c8723e756 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 21 Nov 2022 23:53:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86=E8=A1=A8=E5=A4=B4=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5=E6=8E=92=E5=BA=8F=E6=9C=89?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019771 --user=宋昌昌 【测试跟踪】缺陷管理-表头排序报sql错 https://www.tapd.cn/55049933/s/1300292 --- .../sdk/src/main/java/io/metersphere/request/OrderRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/request/OrderRequest.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/request/OrderRequest.java index 40670e882b..3c0ba433bd 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/request/OrderRequest.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/request/OrderRequest.java @@ -41,7 +41,7 @@ public class OrderRequest { if (StringUtils.isEmpty(script)) { return false; } - Pattern pattern = Pattern.compile("^\\w+$"); + Pattern pattern = Pattern.compile("^[\\w|\\-]+$"); Matcher matcher = pattern.matcher(script.toLowerCase()); return !matcher.find(); }