Update [hash].js

This commit is contained in:
Gilles Lazures 2026-01-18 23:05:59 +01:00
parent ac6eca3f31
commit 85ba96cb6f

View File

@ -1,7 +1,7 @@
const z = require("zod")
const headerSchema = z.object({
authorization: z.string().regex(/^Bearer\s+/i, {
authorization: z.string().regex(new RegExp("^" + "Bearer" + "i"), {
message: "Invalid bearer header"
})
}).passthrough()