Browse Source

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

huj 4 years ago
parent
commit
cfa500137a

+ 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("\"")) {