jpeg for image url

This commit is contained in:
Yago 2014-10-11 12:43:12 +02:00
parent 2ed585b1fa
commit 24d48fc7cb

View File

@ -60,8 +60,8 @@ end
function is_image_url(text)
last = string.get_last_word(text)
extension = string.get_extension_from_filename(last)
if extension == 'jpg' or extension == 'png' then
extension = string.get_extension_from_filename(last) -- TODO: Change it please
if extension == 'jpg' or extension == 'png' or extension == 'jpeg' then
return true
end
return false
@ -512,4 +512,4 @@ end
function on_binlog_replay_end ()
started = 1
end
end