Skip to content

Commit

Permalink
Regexp tweak for image filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dejan committed Apr 16, 2009
1 parent 59528f0 commit d36c8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auto_html/filters/image.rb
@@ -1,5 +1,5 @@
AutoHtml.add_filter(:image) do |text|
text.gsub(/http:\/\/.+(jpg|gif|png)$/) do |match|
text.gsub(/http:\/\/.+\.(jpg|gif|png)/) do |match|
%|<img src="#{match}" alt=""/>|
end
end

0 comments on commit d36c8d7

Please sign in to comment.