Skip to content

Commit b194872

Browse files
committed
Embed webp as an image
1 parent 8b5f9e1 commit b194872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/auto_html/image.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def call(text)
1717
private
1818

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

0 commit comments

Comments
 (0)