mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-14 16:37:58 -05:00
feat: (WIP) Added hyphens and underscores as valid handle characters.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user