better alt text without file extension

This commit is contained in:
feruz 2022-06-01 21:00:29 +03:00
parent 352d6faed5
commit 933c4bb38f

View File

@ -127,10 +127,10 @@ export const UploadsGalleryModal = forwardRef(({
for (const index of map.keys()) {
console.log(index)
const item = mediaUploads[index]
const hhash = item.url.split('/').pop()
data.push({
url: item.url,
hash: item.url.split('/').pop()
hash: hhash.replace(/\.[^/.]+$/, "")
})
}