diff options
author | Stan Hu <stanhu@gmail.com> | 2015-07-20 16:42:52 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-07-20 16:42:52 +0000 |
commit | e8c147903b55fda14f503adf7efcf0b69c54fe67 (patch) | |
tree | be10a98e7d57b41921c09ae1d64819f70cb16504 /lib | |
parent | 996ad35bedca4b8975a6f65fcbf5dbdb75cae278 (diff) | |
parent | 5eeab9f0a62f4843dcef2a7fb2f7f67610bef22d (diff) | |
download | gitlab-ce-e8c147903b55fda14f503adf7efcf0b69c54fe67.tar.gz |
Merge branch 'gc-images-no-casing' into 'master'
GoogleCode importer: Do not care about casing of image file extensions
When a GoogleCode repository contains an attached image with an UPPERCASE file extension, it's not inlined.
/CC @DouweM
See merge request !1003
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/google_code_import/importer.rb | 2 |
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 |