refactor: remove unused channel utilities

This commit is contained in:
Peter Steinberger
2026-05-01 09:36:47 +01:00
parent 86a563e899
commit 22a74de693
7 changed files with 0 additions and 78 deletions

View File

@@ -13,13 +13,6 @@ type FeishuMentionLike = {
name?: string;
};
/**
* Escape regex metacharacters so user-controlled mention fields are treated literally.
*/
export function escapeRegExp(input: string): string {
return input.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
export function isFeishuBroadcastMention(mention: FeishuMentionLike): boolean {
const normalizedKey = mention.key?.trim().toLowerCase();
if (normalizedKey === "@all" || normalizedKey === "@_all") {