Skip to content

Commit

Permalink
Support SVG images
Browse files Browse the repository at this point in the history
  • Loading branch information
dejan authored Dec 4, 2021
1 parent cbdb35d commit b02fb32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auto_html/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def call(text)
private

def image_pattern
%r{(?<!src=")https?://.+?\.(jpg|jpeg|bmp|gif|png)(\?\S+)?}i
%r{(?<!src=")https?://.+?\.(jpg|jpeg|bmp|gif|png|svg)(\?\S+)?}i
end
end
end

0 comments on commit b02fb32

Please sign in to comment.