!36 xml里定义条件组件有空格无法识别,如:b( testChan3 | testChan2 )。增加节点trim处理

xml里定义条件组件有空格无法识别,如:b( testChan3 | testChan2 )。增加节点trim处理
This commit is contained in:
铂赛东
2021-10-15 06:42:10 +00:00
committed by Gitee

View File

@@ -37,7 +37,7 @@ public class RegexEntity {
String[] array = list.get(1).split("\\|");
List<RegexNodeEntity> regexNodeEntityList = new ArrayList<>();
for (String itemStr : array){
regexNodeEntityList.add(RegexNodeEntity.parse(itemStr));
regexNodeEntityList.add(RegexNodeEntity.parse(itemStr.trim()));
}
regexEntity.setRealItemArray(regexNodeEntityList.toArray(new RegexNodeEntity[]{}));
}catch (Exception ignored){}