mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
make sure image onebox is case insensitive
This commit is contained in:
@ -163,7 +163,7 @@ module PrettyText
|
||||
def self.apply_cdn(html, url)
|
||||
return html unless url
|
||||
|
||||
image = /\.(jpg|jpeg|gif|png|tiff|tif|bmp)$/
|
||||
image = /\.(png|jpg|jpeg|gif|bmp|tif|tiff)$/i
|
||||
relative = /^\/[^\/]/
|
||||
|
||||
doc = Nokogiri::HTML.fragment(html)
|
||||
|
Reference in New Issue
Block a user