Convert base token URI and cover image URL schemes to lowercase

This commit is contained in:
Serkan Reis 2022-11-24 09:22:32 +03:00
parent 281a70d778
commit fdabfac8e0

View File

@ -195,12 +195,14 @@ export const UploadDetails = ({ onChange }: UploadDetailsProps) => {
pinataSecretKey: pinataSecretKeyState.value, pinataSecretKey: pinataSecretKeyState.value,
uploadMethod, uploadMethod,
baseTokenURI: baseTokenUriState.value baseTokenURI: baseTokenUriState.value
.replace('IPFS://', 'ipfs://')
.replace(/,/g, '') .replace(/,/g, '')
.replace(/"/g, '') .replace(/"/g, '')
.replace(/'/g, '') .replace(/'/g, '')
.replace(/ /g, '') .replace(/ /g, '')
.replace(regex, ''), .replace(regex, ''),
imageUrl: coverImageUrlState.value imageUrl: coverImageUrlState.value
.replace('IPFS://', 'ipfs://')
.replace(/,/g, '') .replace(/,/g, '')
.replace(/"/g, '') .replace(/"/g, '')
.replace(/'/g, '') .replace(/'/g, '')