Browse Source

正则表达式可能没单位

kongwz 3 years ago
parent
commit
5eaafa898e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/main/java/com/diagbot/facade/KlRegularConfigFacade.java

+ 4 - 3
src/main/java/com/diagbot/facade/KlRegularConfigFacade.java

@@ -305,10 +305,11 @@ public class KlRegularConfigFacade extends KlRegularConfigServiceImpl {
         if (ListUtil.isNotEmpty(regexGroupData)) {
             for (List<String> groupContents : regexGroupData) {
                 if (ListUtil.isNotEmpty(groupContents)) {
-                    String s = groupContents.get(2);
-                    if (StringUtil.isBlank(s)) {
-                        s = "";
+                    String s = "";
+                    if(groupContents.size() > 2){
+                        s = groupContents.get(2);
                     }
+
                     ruleCompileMap.put(groupContents.get(0) + "_" + groupContents.get(1), s);
                 }
             }