lib/onebox/engine/image_onebox.rb in onebox-1.3.0 vs lib/onebox/engine/image_onebox.rb in onebox-1.3.1
- old
+ new
@@ -1,10 +1,10 @@
module Onebox
module Engine
class ImageOnebox
include Engine
- matches_regexp /^(https?:)?\/\/.+\.(png|jpg|jpeg|gif|bmp|tif|tiff)$/i
+ matches_regexp /^(https?:)?\/\/.+\.(png|jpg|jpeg|gif|bmp|tif|tiff)(\?.*)?$/i
def to_html
"<a href='#{@url}' target='_blank'><img src='#{@url}'></a>"
end
end