FIX: Uploads was not testing properly

FIX: Uploads was not testing properly

diff --git a/app/assets/javascripts/discourse/app/lib/uploads.js b/app/assets/javascripts/discourse/app/lib/uploads.js
index 8473892..22776a4 100644
--- a/app/assets/javascripts/discourse/app/lib/uploads.js
+++ b/app/assets/javascripts/discourse/app/lib/uploads.js
@@ -165,7 +165,7 @@ function isAuthorizedImage(fileName, staff, siteSettings) {
   return new RegExp(
     "\\.(" + imagesExtensions(staff, siteSettings).join("|") + ")$",
     "i"
-  );
+  ).test(fileName);
 }
 
 export function authorizedExtensions(staff, siteSettings) {

GitHub sha: bb2460fe

This commit appears in #10298 which was merged by eviltrout.