fix(测试跟踪): 缺陷管理表头自定义字段排序有误

--bug=1019771 --user=宋昌昌 【测试跟踪】缺陷管理-表头排序报sql错 https://www.tapd.cn/55049933/s/1300292
This commit is contained in:
song-cc-rock 2022-11-21 23:53:05 +08:00
parent d2a15ef377
commit 47c697fd5f
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}