mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
make sure image onebox is case insensitive
This commit is contained in:
parent
b7d3b52e4f
commit
3909f93a7e
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue