jpeg for image url
This commit is contained in:
parent
2ed585b1fa
commit
24d48fc7cb
@ -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
|
||||
|
Reference in New Issue
Block a user