refactor(irc): drop unused text splitter · openclaw/openclaw@e552f97
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,6 @@ import {
|
5 | 5 | parseIrcPrefix, |
6 | 6 | sanitizeIrcOutboundText, |
7 | 7 | sanitizeIrcTarget, |
8 | | -splitIrcText, |
9 | 8 | } from "./protocol.js"; |
10 | 9 | |
11 | 10 | describe("irc protocol", () => { |
@@ -37,13 +36,4 @@ describe("irc protocol", () => {
|
37 | 36 | expect(() => sanitizeIrcTarget(" user")).toThrow(/Invalid IRC target/); |
38 | 37 | }); |
39 | 38 | |
40 | | -it("splits long text on boundaries", () => { |
41 | | -const chunks = splitIrcText("a ".repeat(300), 120); |
42 | | -expect(chunks.length).toBeGreaterThan(2); |
43 | | -expect( |
44 | | -chunks |
45 | | -.map((chunk, index) => ({ index, length: chunk.length })) |
46 | | -.filter((chunk) => chunk.length > 120), |
47 | | -).toStrictEqual([]); |
48 | | -}); |
49 | 39 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。