txlyre 1 week ago
parent
commit
1be5f63b69
2 changed files with 2 additions and 2 deletions
  1. 1 1
      actions.py
  2. 1 1
      openkriemy.py

+ 1 - 1
actions.py

@@ -300,7 +300,7 @@ async def run(text):
 
     language_name, text = match.groups()
 
-    text = re.sub(r"^```\w+\n((.|\n)*)```$", r"\1", text)
+    text = re.sub(r"^```\w+\n((?:\n|.)*)```$", r"\1", text)
 
     if text.startswith("```") and text.endswith("```"):
         text = text[3:-3]

+ 1 - 1
openkriemy.py

@@ -50,7 +50,7 @@ async def on_inline_query(event):
 
         return
 
-    result = f"Ввод:\n```{lang}\n{input_text.replace('`', '')}```\nВывод:\n{result}"
+    result = f"```{lang}\n{input_text.replace('`', '')}```\n{result}"
 
     await event.answer(
         [