mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 02:31:31 +08:00
make sure image onebox is case insensitive
This commit is contained in:
@ -3,7 +3,7 @@ require_dependency 'oneboxer/base_onebox'
|
||||
module Oneboxer
|
||||
class ImageOnebox < BaseOnebox
|
||||
|
||||
matcher /^https?:\/\/.*\.(jpg|png|gif|jpeg)$/
|
||||
matcher /^(https?:)?\/\/.+\.(png|jpg|jpeg|gif|bmp|tif|tiff)$/i
|
||||
|
||||
def onebox
|
||||
Oneboxer::BaseOnebox.image_html(@url, nil, @url)
|
||||
|
Reference in New Issue
Block a user