fix: Parse Server option fileUpload.fileExtensions does not work with an array of extensions (#8688)

This commit is contained in:
Bartosz Marganiec
2023-07-18 00:34:46 +02:00
committed by GitHub
parent c9b59719ec
commit 6a4a00ca7a
2 changed files with 26 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ export class FilesRouter {
if (ext === '*') {
return true;
}
const regex = new RegExp(fileExtensions);
const regex = new RegExp(ext);
if (regex.test(extension)) {
return true;
}