From 8d05ef3058682661084ad120e6402de802fbe77b Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 5 Oct 2021 20:28:07 +0900 Subject: [PATCH] fix(api): fix file type regex --- src/server/api/endpoints/admin/drive/files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/endpoints/admin/drive/files.ts b/src/server/api/endpoints/admin/drive/files.ts index c0788c8e02..fe1c799805 100644 --- a/src/server/api/endpoints/admin/drive/files.ts +++ b/src/server/api/endpoints/admin/drive/files.ts @@ -25,7 +25,7 @@ export const meta = { }, type: { - validator: $.optional.nullable.str.match(/^[a-zA-Z\/\-*]+$/) + validator: $.optional.nullable.str.match(/^[a-zA-Z0-9\/\-*]+$/) }, origin: {