fix: normalize artist name when using it as a key

This commit is contained in:
Cory Dransfeldt 2024-03-19 14:36:11 -07:00
parent a8355cfa97
commit 970c5318b7
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "8.3.5",
"version": "8.3.6",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {

View file

@ -1,3 +1,3 @@
import artistCapitalizationPatches from '../json/artist-capitalization-patches.js';
export const artistCapitalization = (artist) => artistCapitalizationPatches[artist] || artist
export const artistCapitalization = (artist) => artistCapitalizationPatches[artist?.toLowerCase()] || artist