fix(feishu): feishu connector name validate (#797)
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Haze <hazeone@users.noreply.github.com>
This commit is contained in:
@@ -44,3 +44,9 @@ export function normalizeOpenClawAccountId(value: string | null | undefined, fal
|
||||
}
|
||||
return normalized;
|
||||
}
|
||||
|
||||
export function isCanonicalOpenClawAccountId(value: string | null | undefined): boolean {
|
||||
const trimmed = (value ?? '').trim();
|
||||
if (!trimmed) return false;
|
||||
return normalizeOpenClawAccountId(trimmed, '') === trimmed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user