From e87f19e7ce5f87e8e09498a6a8b7c1579477343a Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Sun, 22 Feb 2026 14:07:22 +0100 Subject: [PATCH] feat(api): allow _ and - in logo name --- server/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/index.ts b/server/api/index.ts index 6627c15..450602e 100644 --- a/server/api/index.ts +++ b/server/api/index.ts @@ -2,7 +2,7 @@ import { resolve } from "path"; import type { Canvas } from "skia-canvas"; import { getLogoNames } from "../utils/logos"; -const normalize = (s: string) => s.toLowerCase().replace(/\s+/g, ""); +const normalize = (s: string) => s.toLowerCase().replace(/[\s_-]+/g, ""); export default defineEventHandler(async (event) => { const { format, logo, content } = await getValidatedQuery(