diff options
author | Sven Strickroth <email@cs-ware.de> | 2015-07-20 01:53:43 +0300 |
---|---|---|
committer | Sven Strickroth <email@cs-ware.de> | 2015-07-20 01:53:43 +0300 |
commit | 5eeab9f0a62f4843dcef2a7fb2f7f67610bef22d (patch) | |
tree | bd813b36c935eac50feeef332bf8cf5a33ede2f5 /lib/gitlab/google_code_import | |
parent | d0ef64ac8eedae3544e700d94a2373184c9597ee (diff) |
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.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 |