"README.asciidoc" did not exist on "1.9-maint"
Commit f7f5b74f authored by ms-dev's avatar ms-dev
Browse files

修复栏目标签解析bug

parent ce8791ac
Showing with 4 additions and 3 deletions
+4 -3
......@@ -26,8 +26,9 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.regex.Pattern;
import com.alibaba.druid.util.StringUtils;
import com.mingsoft.basic.entity.ColumnEntity;
import com.mingsoft.parser.IParser;
......@@ -237,7 +238,7 @@ public class ChannelParser extends IParser {
super.htmlCotent = htmlCotent;
super.newCotent = regexTab;
htmlCotents = this.replaceFirst(regex);
if (htmlCotents.length() != 0) {
if (StringUtils.isEmpty(htmlCotents)) {
htmlCotents = "标签格式错误";
}
return htmlCotents;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment