mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
refactor: remove unused channel utilities
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user