From 752efbfc3f10cecf900f7650f76f4b5d10181c19 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 3 Jun 2025 12:02:35 +1000 Subject: [PATCH] fix: Use strip not trim --- discord-bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord-bot/bot.py b/discord-bot/bot.py index d71e06b..22438b8 100644 --- a/discord-bot/bot.py +++ b/discord-bot/bot.py @@ -80,7 +80,7 @@ async def createsite(ctx, domain: str, licence: str = None): await ctx.response.send_message("You must specify a domain without http:// or https://",ephemeral=True) return - domain = domain.lower().trim() + domain = domain.lower().strip() # Regex for a domain (or a tld) if not re.match(r'^[a-z0-9-]+(\.[a-z0-9-]+)*$', domain): await ctx.response.send_message("You must specify a valid domain",ephemeral=True)