update
Deploy / deploy (push) Canceled after 0s

This commit is contained in:
xuyue committed 2026-09-27 19:36:28 +08:00
1 parent 23844ae301
commit d25b5dbe6d
268 files changed
+3684 -8861

No files matched your search

+1 -3
View File
@@ -75,9 +75,7 @@ function jieba() {
const built = await withBuiltinDict()
// 对应旧后端的 jieba.add_word(w, freq=9999)。
// @node-rs/jieba@2 没有导出 insertWord/addWord,改用用户词典缓冲区,格式为「词 词频」。
built.loadDict(
Buffer.from(CUSTOM_WORDS.map((word) => `${word} 9999`).join("\n") + "\n"),
)
built.loadDict(Buffer.from(CUSTOM_WORDS.map((word) => `${word} 9999`).join("\n") + "\n"))
return built
})()
return instance