FIX: ensures file extension doesnt have a leading point (#7449)

FIX: ensures file extension doesnt have a leading point (#7449)

diff --git a/app/models/reports/top_uploads.rb b/app/models/reports/top_uploads.rb
index c27790a..cae4284 100644
--- a/app/models/reports/top_uploads.rb
+++ b/app/models/reports/top_uploads.rb
@@ -64,7 +64,7 @@ Report.add_report('top_uploads') do |report|
   builder.where("up.created_at < :end_date", end_date: report.end_date)
 
   if extension_filter
-    builder.where("up.extension = :extension", extension: extension_filter)
+    builder.where("up.extension = :extension", extension: extension_filter.sub(/^\./, ''))
   end
 
   builder.query.each do |row|

GitHub sha: de79313f