fix(功能用例): 修复Xmind导入时出现案例标签为空数组的错误

修复Xmind导入时出现案例标签为空数组的错误
This commit is contained in:
song-tianyang 2021-11-23 14:29:30 +08:00 committed by song-tianyang
parent fe21f93730
commit 8239f286c2
1 changed files with 4 additions and 1 deletions

View File

@ -404,7 +404,10 @@ public class XmindCaseParser {
rc.append(replace(item.getTitle(), RC_REGEX));
rc.append("\n");
} else if (isAvailable(item.getTitle(), TAG_REGEX)) {
tags.add(replace(item.getTitle(), TAG_REGEX));
String tag = replace(item.getTitle(), TAG_REGEX);
if (StringUtils.isNotEmpty(tag)) {
tags.add(tag);
}
} else if (isAvailable(item.getTitle(), ID_REGEX)) {
customId.append(replace(item.getTitle(), ID_REGEX));
} else {