- Echo: Fix für Anführungszeichen in InlineQuerys
- Core: Kennzeichne Inline-Querys
This commit is contained in:
parent
7ce4411a65
commit
0f2e1460cb
@ -225,7 +225,7 @@ function match_inline_plugins(self, inline_query, config, plugin)
|
|||||||
break;
|
break;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
print(plugin.name..' triggered')
|
print('Inline: '..plugin.name..' triggered')
|
||||||
return plugin.inline_callback(self, inline_query, config, matches)
|
return plugin.inline_callback(self, inline_query, config, matches)
|
||||||
end)
|
end)
|
||||||
if not success then
|
if not success then
|
||||||
|
@ -16,6 +16,9 @@ end
|
|||||||
function echo:inline_callback(inline_query, config, matches)
|
function echo:inline_callback(inline_query, config, matches)
|
||||||
local text = matches[1]
|
local text = matches[1]
|
||||||
local results = '['
|
local results = '['
|
||||||
|
if text:match('"') then
|
||||||
|
text = text:gsub('"', '\\"')
|
||||||
|
end
|
||||||
|
|
||||||
-- enable custom markdown button
|
-- enable custom markdown button
|
||||||
if text:match('%[.*%]%(.*%)') or text:match('%*.*%*') or text:match('_.*_') or text:match('`.*`') then
|
if text:match('%[.*%]%(.*%)') or text:match('%*.*%*') or text:match('_.*_') or text:match('`.*`') then
|
||||||
|
Reference in New Issue
Block a user