Sha256: 755201417ef8899f5092f346cd2f743d3ec7fa52d88b0735201493924e15e4a5

Contents?: true

Size: 210 Bytes

Versions: 4

Compression:

Stored size: 210 Bytes

Contents

require 'tag_helper'

AutoHtml.add_filter(:image).with({:alt => ''}) do |text, options|
  text.gsub(/https?:\/\/.+\.(jpg|jpeg|bmp|gif|png)(\?\S+)?/i) do |match|
    TagHelper.image_tag(match, options)
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
marcosinger-auto_html-1.3.6 lib/auto_html/filters/image.rb
auto_html-1.4.2 lib/auto_html/filters/image.rb
auto_html-1.4.1 lib/auto_html/filters/image.rb
auto_html-1.4.0 lib/auto_html/filters/image.rb