mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-25 11:02:00 +03:00
8 lines
199 B
TypeScript
8 lines
199 B
TypeScript
export function normalizeAccountId(value?: string): string | undefined {
|
|
if (typeof value !== "string") {
|
|
return undefined;
|
|
}
|
|
const trimmed = value.trim();
|
|
return trimmed || undefined;
|
|
}
|