fix stopchars

This commit is contained in:
Looly
2025-02-17 13:03:56 +08:00
parent eb5c275547
commit 138b3c5040
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ public class DfaTest {
// 【大】被匹配,最短匹配原则【大土豆】被跳过,【土豆继续被匹配】
// 【刚出锅】被匹配,由于不跳过已经匹配的词,【出锅】被匹配
final List<String> matchAll = tree.matchAll(text, -1, true, false);
Assertions.assertEquals(matchAll, ListUtil.of("", "土^豆", "刚出锅", "出锅"));
Assertions.assertEquals(ListUtil.of("", "土^豆", "刚出锅", "出锅"), matchAll);
}
/**