summaryrefslogtreecommitdiff
path: root/lib/gitlab/blob_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/blob_helper.rb')
-rw-r--r--lib/gitlab/blob_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/blob_helper.rb b/lib/gitlab/blob_helper.rb
index d3e15a79a8b..fc579ad8d2a 100644
--- a/lib/gitlab/blob_helper.rb
+++ b/lib/gitlab/blob_helper.rb
@@ -45,7 +45,7 @@ module Gitlab
end
def image?
- ['.png', '.jpg', '.jpeg', '.gif'].include?(extname.downcase)
+ ['.png', '.jpg', '.jpeg', '.gif', '.svg'].include?(extname.downcase)
end
# Internal: Lookup mime type for extension.