# File lib/html/pipeline/image_filter.rb, line 10 def call @text.gsub(/(https|http)?:\/\/.+\.(jpg|jpeg|bmp|gif|png)(\?\S+)?/i) do |match| %(<img src="#{match}" alt=""/>) end end