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(