feat(api): allow _ and - in logo name
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m35s
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m35s
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user