From 49410bf3725275ecfb00d67e6670ef8ba6482451 Mon Sep 17 00:00:00 2001 From: 2mal3 <56305732+2mal3@users.noreply.github.com> Date: Sun, 18 Jan 2026 18:59:12 +0100 Subject: [PATCH] chore(control): more user friendly open website pop up --- control/frontend/src/routes/ControlView.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/frontend/src/routes/ControlView.svelte b/control/frontend/src/routes/ControlView.svelte index 5262056..34a7340 100644 --- a/control/frontend/src/routes/ControlView.svelte +++ b/control/frontend/src/routes/ControlView.svelte @@ -140,7 +140,7 @@ function validate_website_url(url: string): [boolean, string] { if (url === '') return [true, '']; - const regex = /^https?:\/\/[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/; + const regex = /^https?:\/\/[\w\-]+(\.[\w\-]+)+([\w\-\._~:/?#\[\]@!$&'\(\)\*\+,;=.])*/; if (regex.test(url)) { return [true, '']; } @@ -159,7 +159,7 @@ {#snippet website_popup()}