mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 18:46:39 +00:00
6 lines
230 B
TypeScript
6 lines
230 B
TypeScript
export function normalizeFingerprint(input: string): string {
|
|
const trimmed = input.trim();
|
|
const withoutPrefix = trimmed.replace(/^sha-?256\s*:?\s*/i, "");
|
|
return withoutPrefix.replace(/[^a-fA-F0-9]/g, "").toLowerCase();
|
|
}
|