hashtag MakeWikipediaGreatAgain

This commit is contained in:
topkecleon 2016-02-20 05:57:57 -05:00
parent b17c77eead
commit a838ac1aa1

View File

@ -62,11 +62,11 @@ local action = function(msg)
return return
end end
local l = text:find('<h2>')
if l then
text = text:sub(1, l-1)
end
text = text:gsub('</?.->', '') text = text:gsub('</?.->', '')
local l = text:find('\n')
if l then
text = text:sub(1, l-2)
end
title = title:gsub('%(.+%)', '') title = title:gsub('%(.+%)', '')
--local output = '[' .. title .. '](' .. url .. ')\n' .. text:gsub('%[.+]%','') --local output = '[' .. title .. '](' .. url .. ')\n' .. text:gsub('%[.+]%','')