feat: (WIP) Added hyphens and underscores as valid handle characters.

This commit is contained in:
Peter Michael
2022-03-23 16:27:37 -04:00
parent b3c026a2e3
commit de1a366dee
2 changed files with 5 additions and 2 deletions

View File

@@ -404,7 +404,10 @@ library PublishingLogic {
if (
(byteHandle[i] < '0' ||
byteHandle[i] > 'z' ||
(byteHandle[i] > '9' && byteHandle[i] < 'a')) && byteHandle[i] != '.'
(byteHandle[i] > '9' && byteHandle[i] < 'a')) &&
byteHandle[i] != '.' &&
byteHandle[i] != '-' &&
byteHandle[i] != '_'
) revert Errors.HandleContainsInvalidCharacters();
}
}

View File

@@ -65,7 +65,7 @@ export const REFERRAL_FEE_BPS = 250;
export const MAX_PROFILE_IMAGE_URI_LENGTH = 6000;
export const LENS_HUB_NFT_NAME = 'Lens Profiles';
export const LENS_HUB_NFT_SYMBOL = 'LENS';
export const MOCK_PROFILE_HANDLE = 'plant1ghost.eth';
export const MOCK_PROFILE_HANDLE = 'plant-1_ghost.eth';
export const PERIPHERY_DATA_PROVIDER_NAME = 'LensPeripheryDataProvider';
export const FIRST_PROFILE_ID = 1;
export const MOCK_URI = 'https://ipfs.io/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR';