Skip to content

Commit

Permalink
fix(rr): capture file extensions that are in uppercase (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj authored Nov 3, 2023
1 parent 5ef7927 commit 4c3b349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/review/ReviewRequestService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default class ReviewRequestService {
path,
}: PathInfo): Result<EditedMediaDto, PageParseError> => {
const fileExt = getFileExt(name)
if (ALLOWED_FILE_EXTENSIONS.includes(fileExt)) {
if (ALLOWED_FILE_EXTENSIONS.includes(fileExt.toLowerCase())) {
return ok({
name,
path: path.unwrapOr([""]),
Expand Down

0 comments on commit 4c3b349

Please sign in to comment.