6 lines
220 B
TypeScript
6 lines
220 B
TypeScript
export function normalizeFeishuTarget(raw: string): string {
|
|
let normalized = raw.replace(/^(feishu|lark):/i, "").trim();
|
|
normalized = normalized.replace(/^(group|chat|user|dm):/i, "").trim();
|
|
return normalized;
|
|
}
|