浏览代码

判断关键词是否标引号方法修改

huj 4 年之前
父节点
当前提交
cfa500137a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/src/main/java/com/lantone/qc/kernel/util/CatalogueUtil.java

+ 1 - 0
kernel/src/main/java/com/lantone/qc/kernel/util/CatalogueUtil.java

@@ -79,6 +79,7 @@ public class CatalogueUtil {
     public static List<String> noInQuotes(List<String> words, String text) {
         List<String> retWords = Lists.newArrayList();
         if (ListUtil.isNotEmpty(words) && StringUtil.isNotBlank(text)) {
+            text = text.replaceAll("[“”]", "\"");
             List<String> sections = Lists.newArrayList();
             int index = 0;
             for (String txt : text.split("\"")) {