Make image features work with .webp images.

This commit is contained in:
ccd0 2020-06-16 01:34:49 -07:00
parent 44ca4c34bb
commit 1fc7fdedad

View File

@ -490,7 +490,7 @@ $.unescape = (text) ->
text.replace(/<[^>]*>/g, '').replace /&(amp|#039|quot|lt|gt|#44);/g, (c) ->
(({'&amp;': '&', '&#039;': "'", '&quot;': '"', '&lt;': '<', '&gt;': '>', '&#44;': ','})[c])
$.isImage = (url) -> /\.(jpe?g|png|gif|bmp)$/i.test url
$.isImage = (url) -> /\.(jpe?g|png|gif|bmp|webp)$/i.test url
$.isVideo = (url) -> /\.(webm|mp4)$/i.test url
$.engine = do ->