From 097d63efead05da5d4b1039a9fbda9ef3313b64a Mon Sep 17 00:00:00 2001 From: Gandalf Date: Tue, 30 Dec 2025 12:02:55 +0100 Subject: [PATCH] fix: Allow consecutive dashes in account name validation Remove incorrect validation rule that rejected consecutive dashes in Hive account names. Consecutive dashes are valid - for example, account 'a--a' exists on the Hive blockchain. This was incorrectly rejecting valid accounts in login forms and transfer dialogs. --- .../smart-signer/lib/validators/validate-hive-account-name.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/smart-signer/lib/validators/validate-hive-account-name.ts b/packages/smart-signer/lib/validators/validate-hive-account-name.ts index 5994d980c..3ad12534e 100644 --- a/packages/smart-signer/lib/validators/validate-hive-account-name.ts +++ b/packages/smart-signer/lib/validators/validate-hive-account-name.ts @@ -29,9 +29,7 @@ export function validateHiveAccountName( if (!/^[a-z]/.test(label)) { return 'Each account segment should start with a letter.'; } - if (/--/.test(label)) { - return 'Each account segment should have only one dash in a row.'; - } + // Note: Consecutive dashes ARE valid in Hive account names (e.g., 'a--a') if (!/[a-z0-9]$/.test(label)) { return 'Each account segment should end with a letter or digit.'; } -- GitLab