mirror of
https://github.com/RGBCube/VReplBot
synced 2025-07-27 08:27: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
|
@staticmethod
|
||||||
def grep_code(content: str) -> str:
|
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
|
return codeblock_converter(content).content
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue