Merge pull request #191 from public-awesome/update-whitespace-handling-in-urls
Update whitespace handling in existing URLs
This commit is contained in:
commit
adeba3e9d3
@ -106,8 +106,8 @@ export const ImageUploadDetails = ({ onChange, mintRule }: ImageUploadDetailsPro
|
||||
.replace(/,/g, '')
|
||||
.replace(/"/g, '')
|
||||
.replace(/'/g, '')
|
||||
.replace(/ /g, '')
|
||||
.replace(regex, ''),
|
||||
.replace(regex, '')
|
||||
.trim(),
|
||||
}
|
||||
onChange(data)
|
||||
} catch (error: any) {
|
||||
|
@ -239,15 +239,15 @@ export const UploadDetails = ({ onChange, minterType, baseMinterAcquisitionMetho
|
||||
.replace(/,/g, '')
|
||||
.replace(/"/g, '')
|
||||
.replace(/'/g, '')
|
||||
.replace(/ /g, '')
|
||||
.replace(regex, ''),
|
||||
.replace(regex, '')
|
||||
.trim(),
|
||||
imageUrl: coverImageUrlState.value
|
||||
.replace('IPFS://', 'ipfs://')
|
||||
.replace(/,/g, '')
|
||||
.replace(/"/g, '')
|
||||
.replace(/'/g, '')
|
||||
.replace(/ /g, '')
|
||||
.replace(regex, ''),
|
||||
.replace(regex, '')
|
||||
.trim(),
|
||||
baseMinterMetadataFile,
|
||||
}
|
||||
onChange(data)
|
||||
|
@ -115,8 +115,8 @@ export const ImageUploadDetails = ({ onChange }: ImageUploadDetailsProps) => {
|
||||
.replace(/,/g, '')
|
||||
.replace(/"/g, '')
|
||||
.replace(/'/g, '')
|
||||
.replace(/ /g, '')
|
||||
.replace(regex, ''),
|
||||
.replace(regex, '')
|
||||
.trim(),
|
||||
coverImageUrl: coverImageUrlState.value.trim(),
|
||||
}
|
||||
onChange(data)
|
||||
|
@ -194,15 +194,15 @@ export const OffChainMetadataUploadDetails = ({
|
||||
.replace(/,/g, '')
|
||||
.replace(/"/g, '')
|
||||
.replace(/'/g, '')
|
||||
.replace(/ /g, '')
|
||||
.replace(regex, ''),
|
||||
.replace(regex, '')
|
||||
.trim(),
|
||||
imageUrl: coverImageUrlState.value
|
||||
.replace('IPFS://', 'ipfs://')
|
||||
.replace(/,/g, '')
|
||||
.replace(/"/g, '')
|
||||
.replace(/'/g, '')
|
||||
.replace(/ /g, '')
|
||||
.replace(regex, ''),
|
||||
.replace(regex, '')
|
||||
.trim(),
|
||||
openEditionMinterMetadataFile,
|
||||
}
|
||||
onChange(data)
|
||||
|
Loading…
Reference in New Issue
Block a user