fix: normalize artist name when using it as a key
This commit is contained in:
parent
a8355cfa97
commit
970c5318b7
2 changed files with 2 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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
|
Reference in a new issue