1
Fork 0
mirror of https://github.com/RGBCube/VReplBot synced 2025-05-31 13:18:12 +00:00

wrong method

This commit is contained in:
RGBCube 2023-02-03 22:58:37 +03:00
parent 57fab87361
commit c471a80718

View file

@ -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: