mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 14:18:26 +00:00
refactor: prune legacy group targets
This commit is contained in:
@@ -11,6 +11,10 @@ describe("stripTelegramInternalPrefixes", () => {
|
||||
expect(stripTelegramInternalPrefixes("telegram:group:-100123")).toBe("-100123");
|
||||
});
|
||||
|
||||
it("does not strip group prefix without telegram prefix", () => {
|
||||
expect(stripTelegramInternalPrefixes("group:-100123")).toBe("group:-100123");
|
||||
});
|
||||
|
||||
it("is idempotent", () => {
|
||||
expect(stripTelegramInternalPrefixes("@mychannel")).toBe("@mychannel");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user