From 4c3b3498632422dccc9031447d81c6a6190f3659 Mon Sep 17 00:00:00 2001 From: Hsu Zhong Jun <27919917+dcshzj@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:23:27 +0800 Subject: [PATCH] fix(rr): capture file extensions that are in uppercase (#1016) --- src/services/review/ReviewRequestService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/review/ReviewRequestService.ts b/src/services/review/ReviewRequestService.ts index b06c34bfe..c065c33e0 100644 --- a/src/services/review/ReviewRequestService.ts +++ b/src/services/review/ReviewRequestService.ts @@ -252,7 +252,7 @@ export default class ReviewRequestService { path, }: PathInfo): Result => { const fileExt = getFileExt(name) - if (ALLOWED_FILE_EXTENSIONS.includes(fileExt)) { + if (ALLOWED_FILE_EXTENSIONS.includes(fileExt.toLowerCase())) { return ok({ name, path: path.unwrapOr([""]),