diff --git a/app/assets/javascripts/discourse/lib/uploads.js.es6 b/app/assets/javascripts/discourse/lib/uploads.js.es6 index 89b8b973b67..ed0271e8f34 100644 --- a/app/assets/javascripts/discourse/lib/uploads.js.es6 +++ b/app/assets/javascripts/discourse/lib/uploads.js.es6 @@ -15,8 +15,6 @@ function imageNameFromFileName(fileName) { } return name.replace(/\[|\]|\|/g, ""); - - // return encodeURIComponent(name).replace(/%20/g, " "); } export function validateUploadedFiles(files, opts) {