mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 02:11:35 +01:00
Update hash removal pattern
This commit is contained in:
@@ -17,10 +17,9 @@ const processedAlbumCovers = albumCovers.map((cover) => {
|
|||||||
|
|
||||||
let title = lastDashIndex !== -1 ? filename.substring(lastDashIndex + 3) : "";
|
let title = lastDashIndex !== -1 ? filename.substring(lastDashIndex + 3) : "";
|
||||||
|
|
||||||
const lastDotIndex = title.lastIndexOf(".");
|
if (import.meta.env.PROD) {
|
||||||
|
const lastDotIndex = filename.lastIndexOf(".");
|
||||||
if (lastDotIndex !== -1 && import.meta.env.PROD) {
|
title = lastDotIndex !== -1 ? filename.substring(0, lastDotIndex) : "";
|
||||||
title = filename.substring(0, lastDotIndex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return { cover, filename, artists, title };
|
return { cover, filename, artists, title };
|
||||||
|
|||||||
Reference in New Issue
Block a user