From 970c5318b71ef7ced0c7428bd62b57266cc7ca09 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 19 Mar 2024 14:36:11 -0700 Subject: [PATCH] fix: normalize artist name when using it as a key --- package.json | 2 +- src/_data/helpers/music.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 592d7af0..e53f00b7 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/_data/helpers/music.js b/src/_data/helpers/music.js index 44edc001..f9582415 100644 --- a/src/_data/helpers/music.js +++ b/src/_data/helpers/music.js @@ -1,3 +1,3 @@ import artistCapitalizationPatches from '../json/artist-capitalization-patches.js'; -export const artistCapitalization = (artist) => artistCapitalizationPatches[artist] || artist \ No newline at end of file +export const artistCapitalization = (artist) => artistCapitalizationPatches[artist?.toLowerCase()] || artist \ No newline at end of file