mirror of
https://github.com/RGBCube/VReplBot
synced 2025-05-31 13:18:12 +00:00
wrong method
This commit is contained in:
parent
57fab87361
commit
c471a80718
1 changed files with 4 additions and 2 deletions
|
@ -91,8 +91,10 @@ class Playground(
|
|||
|
||||
@staticmethod
|
||||
def extract_link_query(content: str) -> str | None:
|
||||
if (no_http_content := content.lstrip("https://")).startswith("play.vlang.io/?query="):
|
||||
return no_http_content.lstrip("play.vlang.io/?query=").split(" ", 1)[0]
|
||||
if (no_http_content := content.removeprefix("https://")).startswith(
|
||||
"play.vlang.io/?query="
|
||||
):
|
||||
return no_http_content.removeprefix("play.vlang.io/?query=").split(" ", 1)[0]
|
||||
|
||||
@staticmethod
|
||||
def sanitize(string: str) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue