Make image features work with .webp images.
This commit is contained in:
parent
44ca4c34bb
commit
1fc7fdedad
@ -490,7 +490,7 @@ $.unescape = (text) ->
|
||||
text.replace(/<[^>]*>/g, '').replace /&(amp|#039|quot|lt|gt|#44);/g, (c) ->
|
||||
(({'&': '&', ''': "'", '"': '"', '<': '<', '>': '>', ',': ','})[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 ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user