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) 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
@ -512,4 +512,4 @@ end
function on_binlog_replay_end () function on_binlog_replay_end ()
started = 1 started = 1
end end