1
Fork 0
mirror of https://github.com/RGBCube/VReplBot synced 2025-07-25 23:47:45 +00:00

cursed code

This commit is contained in:
RGBCube 2023-02-03 23:02:56 +03:00
parent f3db28d7f4
commit c7b05bcf2c

View file

@ -73,7 +73,8 @@ class Playground(
@staticmethod
def grep_code(content: str) -> str:
content = "`" + content.split("`", 1)[1].rsplit("`", 1)[0] + "`"
content = "`" + (splitted := content.split("`", 1))[len(splitted) - 1].rsplit("`", 1)[
0] + "`"
return codeblock_converter(content).content