Ignore case when matching image paths.

Otherwise images with file extensions in caps don't get rendered.
This commit is contained in:
Marko Anastasov
2010-10-12 12:03:45 +02:00
parent e7b1265873
commit 16ef859073
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ module Gollum
name = parts[0].strip
path = if file = find_file(name)
::File.join @wiki.base_path, file.path
elsif name =~ /^https?:\/\/.+(jpg|png|gif|svg|bmp)$/
elsif name =~ /^https?:\/\/.+(jpg|png|gif|svg|bmp)$/i
name
end