feat(api): allow _ and - in logo name
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m35s

This commit is contained in:
2026-02-22 14:07:22 +01:00
parent 3d53660319
commit e87f19e7ce

View File

@@ -2,7 +2,7 @@ import { resolve } from "path";
import type { Canvas } from "skia-canvas"; import type { Canvas } from "skia-canvas";
import { getLogoNames } from "../utils/logos"; 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) => { export default defineEventHandler(async (event) => {
const { format, logo, content } = await getValidatedQuery( const { format, logo, content } = await getValidatedQuery(