fix(lark): make normalizeAllowEntry consistent with channel.ts

This commit is contained in:
devsh 2026-01-27 16:16:07 +08:00
parent d0d138e40a
commit cea071f247

View File

@ -33,7 +33,7 @@ function decrypt(encrypt: string, key: string): string {
} }
function normalizeAllowEntry(entry: string): string { function normalizeAllowEntry(entry: string): string {
return entry.trim().replace(/^lark:/i, "").replace(/^feishu:/i, "").toLowerCase(); return entry.trim().replace(/^lark:/i, "").replace(/^feishu:/i, "");
} }
function isAllowed(senderId: string, allowFrom: string[], dmPolicy: string): boolean { function isAllowed(senderId: string, allowFrom: string[], dmPolicy: string): boolean {