fix: rollback changes to ed25519str

pull/3281/head
Audric Ackermann 3 months ago
parent 5bebd3f029
commit 374a0f9272
No known key found for this signature in database

@ -63,9 +63,5 @@ export const sanitizeSessionUsername = (inputName: string) => {
return validChars; return validChars;
}; };
export const ed25519Str = (ed25519Key: string) => { export const ed25519Str = (ed25519Key: string) =>
if (ed25519Key.length <= 6) { `(...${ed25519Key.length > 58 ? ed25519Key.substr(58) : ed25519Key})`;
return `(${ed25519Key})`;
}
return `(${ed25519Key.substr(0, 2)}...${ed25519Key.substr(-4)})`;
};

Loading…
Cancel
Save