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

@ -38,10 +38,10 @@ public class StopChar {
'⒔', '⒕', '⒖', '⒗', '⒘', '⒙', '⒚', '⒛', '⑴', '⑵', '⑶', '⑷', '⑸', '⑹', '⑺', '⑻', '⑼', '⑽', '⑾', '⑿', '⒀', //
'⒁', '⒂', '⒃', '⒄', '⒅', '⒆', '⒇', '', 'Ⅱ', 'Ⅲ', 'Ⅳ', '', 'Ⅵ', 'Ⅶ', 'Ⅷ', 'Ⅸ', '', 'Ⅺ', 'Ⅻ', '', //
'', '¥', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', //
'', '', '', '', '', '', '', '', '', '', '', '_', '', '', '', 'Ρ', //
'', '', '', '', '', '', '', '', '', '', '', '', '', '_', '', '', '', '', 'Ρ', //
'Υ', 'Φ', 'Χ', 'Ψ', 'Ω', 'α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ', 'ι', 'κ', 'λ', 'μ', 'ν', 'ξ', 'ο', 'π', //
'ρ', 'σ', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω', '﹊', '', '╭', '╮', '╰', '╯', '', '_', //
'/', '\\', '\"', '<', '>', '`', '{', '}', '~', '(', ')', '-', //
'ρ', 'σ', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω', '', '', '', '﹊', '', '╭', '╮', '╰', '╯', '', '_', //
'', '^', '', '', '', '/', '\\', '\"', '<', '>', '`', '{', '}', '~', '(', ')', '-', //
'$', '@', '*', '&', '#', '卐', '㎎', '㎏', '㎜', '㎝', '㎞', '㎡', '㏄', '㏎', '㏑', '㏒', '㏕', '+', '=', '?',
':', '.', '!', ';', ']','|','%');

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);
}
/**