mirror of
https://github.com/honojs/hono.git
synced 2024-11-24 19:26:56 +01:00
fix(validator): Add double quotation marks to multipart checker regex (#3195)
This commit is contained in:
parent
a63bcfd6fb
commit
0417830fe9
@ -24,7 +24,7 @@ export type ValidationFunction<
|
||||
type ExcludeResponseType<T> = T extends Response & TypedResponse<any> ? never : T
|
||||
|
||||
const jsonRegex = /^application\/([a-z-\.]+\+)?json$/
|
||||
const multipartRegex = /^multipart\/form-data(; boundary=[A-Za-z0-9'()+_,\-./:=?]+)?$/
|
||||
const multipartRegex = /^multipart\/form-data(; boundary=[A-Za-z0-9'"()+_,\-./:=?]+)?$/
|
||||
const urlencodedRegex = /^application\/x-www-form-urlencoded$/
|
||||
|
||||
export const validator = <
|
||||
|
Loading…
Reference in New Issue
Block a user