jpeg for image url
This commit is contained in:
parent
2ed585b1fa
commit
24d48fc7cb
@ -60,8 +60,8 @@ end
|
|||||||
|
|
||||||
function is_image_url(text)
|
function is_image_url(text)
|
||||||
last = string.get_last_word(text)
|
last = string.get_last_word(text)
|
||||||
extension = string.get_extension_from_filename(last)
|
extension = string.get_extension_from_filename(last) -- TODO: Change it please
|
||||||
if extension == 'jpg' or extension == 'png' then
|
if extension == 'jpg' or extension == 'png' or extension == 'jpeg' then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user