summaryrefslogtreecommitdiff
path: root/lib/gitlab/google_code_import
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2015-07-20 00:53:43 +0200
committerSven Strickroth <email@cs-ware.de>2015-07-20 00:53:43 +0200
commit5eeab9f0a62f4843dcef2a7fb2f7f67610bef22d (patch)
treebd813b36c935eac50feeef332bf8cf5a33ede2f5 /lib/gitlab/google_code_import
parentd0ef64ac8eedae3544e700d94a2373184c9597ee (diff)
downloadgitlab-ce-5eeab9f0a62f4843dcef2a7fb2f7f67610bef22d.tar.gz
GoogleCode importer: Do not care about casing of image file extensions
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'lib/gitlab/google_code_import')
-rw-r--r--lib/gitlab/google_code_import/importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/google_code_import/importer.rb b/lib/gitlab/google_code_import/importer.rb
index 70bfe059776..03c410726a5 100644
--- a/lib/gitlab/google_code_import/importer.rb
+++ b/lib/gitlab/google_code_import/importer.rb
@@ -327,7 +327,7 @@ module Gitlab
link = "https://storage.googleapis.com/google-code-attachments/#{@repo.name}/issue-#{issue_id}/comment-#{comment_id}/#{filename}"
text = "[#{filename}](#{link})"
- text = "!#{text}" if filename =~ /\.(png|jpg|jpeg|gif|bmp|tiff)\z/
+ text = "!#{text}" if filename =~ /\.(png|jpg|jpeg|gif|bmp|tiff)\z/i
text
end.compact
end