From acff4ea44e67ac0ea0e51b7ca9f922a0f963a2c1 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Sun, 6 Apr 2025 17:07:54 -0700 Subject: [PATCH] fix: filter null key --- koikatsu.js | 2 +- site/koikatsu.html | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/koikatsu.js b/koikatsu.js index fac25eb..fea6bfd 100644 --- a/koikatsu.js +++ b/koikatsu.js @@ -4,7 +4,7 @@ import { join } from "node:path"; const fileReq = await fetch('https://cdn.nhcarrigan.com?prefix=koikatsu'); const files = await fileReq.text(); const keys = files.matchAll(/(.*?)<\/Key>/g); -const keyNames = [...keys].map((key) => key[1]?.replace("koikatsu/", "")); +const keyNames = [...keys].map((key) => key[1]?.replace("koikatsu/", "")).filter(key => key); const keyHtml = keyNames.map((key) => `
- - Digital art of Naomi. - -