diff --git a/v_repl_bot/cogs/playground.py b/v_repl_bot/cogs/playground.py index 826e2c8..d066ed1 100644 --- a/v_repl_bot/cogs/playground.py +++ b/v_repl_bot/cogs/playground.py @@ -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: