FIX: Uploads was not testing properly

This commit is contained in:
Robin Ward 2020-07-23 15:37:12 -04:00
parent 808b5aa5ba
commit bb2460fe66
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ function isAuthorizedImage(fileName, staff, siteSettings) {
return new RegExp(
"\\.(" + imagesExtensions(staff, siteSettings).join("|") + ")$",
"i"
);
).test(fileName);
}
export function authorizedExtensions(staff, siteSettings) {