mirror of
https://github.com/RGBCube/VReplBot
synced 2025-07-25 23:47:45 +00:00
cursed code
This commit is contained in:
parent
f3db28d7f4
commit
c7b05bcf2c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue